From faa9d434b4d681837ff2a87603337c2623419669 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 17 Jun 2020 10:55:40 +0200 Subject: Update server dependencies --- server/tools/peertube-auth.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'server/tools') diff --git a/server/tools/peertube-auth.ts b/server/tools/peertube-auth.ts index c1a804f83..74bce7314 100644 --- a/server/tools/peertube-auth.ts +++ b/server/tools/peertube-auth.ts @@ -28,7 +28,7 @@ async function delInstance (url: string) { async function setInstance (url: string, username: string, password: string, isDefault: boolean) { const [ settings, netrc ] = await Promise.all([ getSettings(), getNetrc() ]) - if (settings.remotes.indexOf(url) === -1) { + if (settings.remotes.includes(url) === false) { settings.remotes.push(url) } -- cgit v1.2.3