Skip to content
This repository was archived by the owner on May 29, 2022. It is now read-only.

Commit db75bbe

Browse files
committed
(lint) Resolve lint errors
1 parent 016ffba commit db75bbe

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,8 @@
7171
"camelcase": 0,
7272
"unicorn/filename-case": 0,
7373
"import/no-unassigned-import": 0,
74-
"unicorn/prefer-string-slice": 0
74+
"unicorn/prefer-string-slice": 0,
75+
"unicorn/no-process-exit": 0
7576
}
7677
}
7778
}

src/fetchPlaybackSession.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,11 @@ const outdent = require('outdent');
1717
const conf = alfy.config.get('setting');
1818

1919
// To do: Remove below codes after resolving `#6`.
20+
2021
alfy.error('chm is not available now. See #6.');
2122
process.exit(1);
2223

24+
// eslint-disable-next-line no-unreachable
2325
(async function () {
2426
let input = alfy.input ? alfy.input.normalize() : '';
2527
input = handleInput(input);

src/utils.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ const getDBFilePath = (chromeProfilePath, DBFile) => {
112112
}
113113
};
114114

115-
const recommendRetry = (tryFunction) => {
115+
const recommendRetry = tryFunction => {
116116
return (...args) => {
117117
try {
118118
return tryFunction(...args);
@@ -126,13 +126,14 @@ const recommendRetry = (tryFunction) => {
126126
} else {
127127
alfy.error('Profile not found error');
128128
}
129+
129130
process.exit(0);
130131
}
131132

132133
alfy.error(error);
133134
process.exit(1);
134135
}
135-
}
136+
};
136137
};
137138

138139
async function getChromeBookmark() {
@@ -321,6 +322,7 @@ const tryFindUserProfile = () => {
321322
return true;
322323
}
323324
}
325+
324326
return false;
325327
};
326328

0 commit comments

Comments
 (0)