diff options
Diffstat (limited to 'server/tools/peertube-auth.ts')
-rw-r--r-- | server/tools/peertube-auth.ts | 2 |
1 files changed, 1 insertions, 1 deletions
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) { | |||
28 | async function setInstance (url: string, username: string, password: string, isDefault: boolean) { | 28 | async function setInstance (url: string, username: string, password: string, isDefault: boolean) { |
29 | const [ settings, netrc ] = await Promise.all([ getSettings(), getNetrc() ]) | 29 | const [ settings, netrc ] = await Promise.all([ getSettings(), getNetrc() ]) |
30 | 30 | ||
31 | if (settings.remotes.indexOf(url) === -1) { | 31 | if (settings.remotes.includes(url) === false) { |
32 | settings.remotes.push(url) | 32 | settings.remotes.push(url) |
33 | } | 33 | } |
34 | 34 | ||