diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-10-25 16:52:01 +0200 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-10-26 09:11:38 +0200 |
commit | d412e80e5f748f92118541a5334c14ebd4a90881 (patch) | |
tree | 3f0a240fadc0cf1f63ef087515b2e2cd253a6b79 /server/helpers | |
parent | 404b54e14f6623c1644a8c87ca22f4bab98d5484 (diff) | |
download | PeerTube-d412e80e5f748f92118541a5334c14ebd4a90881.tar.gz PeerTube-d412e80e5f748f92118541a5334c14ebd4a90881.tar.zst PeerTube-d412e80e5f748f92118541a5334c14ebd4a90881.zip |
Fix lint
Diffstat (limited to 'server/helpers')
-rw-r--r-- | server/helpers/peertube-crypto.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/helpers/peertube-crypto.ts b/server/helpers/peertube-crypto.ts index 47f0243e7..fbc3bdcc2 100644 --- a/server/helpers/peertube-crypto.ts +++ b/server/helpers/peertube-crypto.ts | |||
@@ -58,7 +58,7 @@ async function sign (data: string|Object) { | |||
58 | sign.update(dataString, 'utf8') | 58 | sign.update(dataString, 'utf8') |
59 | 59 | ||
60 | const myKey = await getMyPrivateCert() | 60 | const myKey = await getMyPrivateCert() |
61 | return await sign.sign(myKey, SIGNATURE_ENCODING) | 61 | return sign.sign(myKey, SIGNATURE_ENCODING) |
62 | } | 62 | } |
63 | 63 | ||
64 | function comparePassword (plainPassword: string, hashPassword: string) { | 64 | function comparePassword (plainPassword: string, hashPassword: string) { |
@@ -68,7 +68,7 @@ function comparePassword (plainPassword: string, hashPassword: string) { | |||
68 | async function createCertsIfNotExist () { | 68 | async function createCertsIfNotExist () { |
69 | const exist = await certsExist() | 69 | const exist = await certsExist() |
70 | if (exist === true) { | 70 | if (exist === true) { |
71 | return undefined | 71 | return |
72 | } | 72 | } |
73 | 73 | ||
74 | return await createCerts() | 74 | return await createCerts() |