Skip to content

Commit 5d14c52

Browse files
committed
Fix linting errors
1 parent ab38efb commit 5d14c52

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ function createPostcssPreprocessor(args, config, logger, server) {
9393

9494
if (index !== -1) {
9595
dependencies[keys[i]].splice(index, 1);
96-
if (!dependencies[keys[i]].length) {
96+
if (!dependencies[keys[i]].length > 0) {
9797
stopWatching.push(keys[i]);
9898
log.debug('Stop watching "%s"', keys[i]);
9999
delete dependencies[keys[i]];
@@ -102,10 +102,10 @@ function createPostcssPreprocessor(args, config, logger, server) {
102102
}
103103
}
104104

105-
if (startWatching.length) {
105+
if (startWatching.length > 0) {
106106
watcher.add(startWatching);
107107
}
108-
if (stopWatching.length) {
108+
if (stopWatching.length > 0) {
109109
watcher.unwatch(stopWatching);
110110
}
111111
}

test/helpers/karma.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ export async function waitForRunComplete(server) {
110110

111111
return result;
112112
} catch (err) {
113-
if (err instanceof Array) {
113+
if (Array.isArray(err)) {
114114
const [{lastResult: {success, failed, error, disconnected}}, errMsg] = err;
115115

116116
return {success, failed, error, disconnected, exitCode: 1, errMsg};

0 commit comments

Comments
 (0)