From d412e80e5f748f92118541a5334c14ebd4a90881 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 25 Oct 2017 16:52:01 +0200 Subject: Fix lint --- server/helpers/peertube-crypto.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'server/helpers/peertube-crypto.ts') 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) { sign.update(dataString, 'utf8') const myKey = await getMyPrivateCert() - return await sign.sign(myKey, SIGNATURE_ENCODING) + return sign.sign(myKey, SIGNATURE_ENCODING) } function comparePassword (plainPassword: string, hashPassword: string) { @@ -68,7 +68,7 @@ function comparePassword (plainPassword: string, hashPassword: string) { async function createCertsIfNotExist () { const exist = await certsExist() if (exist === true) { - return undefined + return } return await createCerts() -- cgit v1.2.3