Make linter happy (and fix a mistake)

This commit is contained in:
Godzil
2018-08-05 10:30:22 +01:00
parent a44d1ae668
commit d19992f0d3
4 changed files with 6 additions and 5 deletions

View File

@@ -12,7 +12,7 @@ request.get({ uri: 'https://box.godzil.net/getVersion.php?tool=crunchy&v=' + cur
(error: Error, response: any, body: any) =>
{
const onlinepkg = JSON.parse(body);
if (onlinepkg.status = 'ok')
if (onlinepkg.status === 'ok')
{
let tmp = current_version.split('.');
const cur = (Number(tmp[0]) * 10000) + (Number(tmp[1]) * 100) + Number(tmp[2]);