diff options
author | Chocobozzz <me@florianbigard.com> | 2020-06-17 10:55:40 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2020-06-17 11:42:50 +0200 |
commit | faa9d434b4d681837ff2a87603337c2623419669 (patch) | |
tree | 1f3c798dd6fd5f2dcbb019978f063f448c019974 /server/tools/peertube-auth.ts | |
parent | 982f2fc9b42537ca40ff29bf62c1ca3692d4b587 (diff) | |
download | PeerTube-faa9d434b4d681837ff2a87603337c2623419669.tar.gz PeerTube-faa9d434b4d681837ff2a87603337c2623419669.tar.zst PeerTube-faa9d434b4d681837ff2a87603337c2623419669.zip |
Update server dependencies
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 | ||