From d19992f0d3938f795e2f190914fbfe4c3ed838cf Mon Sep 17 00:00:00 2001 From: Godzil Date: Sun, 5 Aug 2018 10:30:22 +0100 Subject: [PATCH] Make linter happy (and fix a mistake) --- src/cli.ts | 2 +- src/my_request.ts | 1 - src/series.ts | 6 ++++-- src/video/stream.ts | 2 +- 4 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/cli.ts b/src/cli.ts index d92960b..92ceb32 100644 --- a/src/cli.ts +++ b/src/cli.ts @@ -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]); diff --git a/src/my_request.ts b/src/my_request.ts index af51c90..5acb4dd 100644 --- a/src/my_request.ts +++ b/src/my_request.ts @@ -178,7 +178,6 @@ export function getUserAgent(): string return defaultHeaders['User-Agent']; } - /** * Performs a GET request for the resource. */ diff --git a/src/series.ts b/src/series.ts index df1184f..3d28129 100644 --- a/src/series.ts +++ b/src/series.ts @@ -217,12 +217,14 @@ function pageScrape(config: IConfig, task: IConfigTask, done: (err: any, result? if ($('.availability-notes-low').length) { - log.warn('This serie may have georestriction and some missings episode (like some dubs) [Message: ' + $('.availability-notes-low').text() + '].'); + log.warn('This serie may have georestriction and some missings episode (like some dubs)' + + ' [Message: ' + $('.availability-notes-low').text() + '].'); } if ($('.availability-notes-high').length) { - log.warnMore('This serie probably have georestriction and will miss some episodes [Message: ' + $('.availability-notes-high').text() + '].'); + log.warnMore('This serie probably have georestriction and will miss some episodes' + + ' [Message: ' + $('.availability-notes-high').text() + '].'); } $('.episode').each((i, el) => { diff --git a/src/video/stream.ts b/src/video/stream.ts index 1f16575..f18547d 100644 --- a/src/video/stream.ts +++ b/src/video/stream.ts @@ -3,7 +3,7 @@ import childProcess = require('child_process'); import os = require('os'); import path = require('path'); -import my_request = require('../my_request') +import my_request = require('../my_request'); import log = require('../log'); /**