From 6090faa1ca3380d393bb917c7f9f4818660554d4 Mon Sep 17 00:00:00 2001 From: Yarmo Mackenbach Date: Fri, 31 Jul 2020 00:17:11 +0200 Subject: [PATCH] Improve syntax --- assets/scripts.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/assets/scripts.js b/assets/scripts.js index d0b943f..487c072 100644 --- a/assets/scripts.js +++ b/assets/scripts.js @@ -496,7 +496,7 @@ async function verifyProof(url, fingerprint) { } catch (e) { } - if(output.isVerified == false) { + if (!output.isVerified) { output.proofUrlFetch = `/server/verifyHackerNews.php?user=${match[1]}&fp=${fingerprint}`; try { response = await fetch(output.proofUrlFetch, { @@ -510,7 +510,8 @@ async function verifyProof(url, fingerprint) { } json = await response.json(); output.isVerified = json.verified; - } catch (e) { } + } catch (e) { + } } return output; }