aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/helpers/peertube-crypto.ts
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2017-10-25 16:52:01 +0200
committerChocobozzz <florian.bigard@gmail.com>2017-10-26 09:11:38 +0200
commitd412e80e5f748f92118541a5334c14ebd4a90881 (patch)
tree3f0a240fadc0cf1f63ef087515b2e2cd253a6b79 /server/helpers/peertube-crypto.ts
parent404b54e14f6623c1644a8c87ca22f4bab98d5484 (diff)
downloadPeerTube-d412e80e5f748f92118541a5334c14ebd4a90881.tar.gz
PeerTube-d412e80e5f748f92118541a5334c14ebd4a90881.tar.zst
PeerTube-d412e80e5f748f92118541a5334c14ebd4a90881.zip
Fix lint
Diffstat (limited to 'server/helpers/peertube-crypto.ts')
-rw-r--r--server/helpers/peertube-crypto.ts4
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
64function comparePassword (plainPassword: string, hashPassword: string) { 64function comparePassword (plainPassword: string, hashPassword: string) {
@@ -68,7 +68,7 @@ function comparePassword (plainPassword: string, hashPassword: string) {
68async function createCertsIfNotExist () { 68async 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()