Skip to content

Commit

Permalink
make ESLint happy
Browse files Browse the repository at this point in the history
  • Loading branch information
fisker committed Nov 16, 2019
1 parent fd8baf9 commit 9522318
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/cli/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,9 @@ function formatFiles(context) {
let fileIgnored = false;
try {
fileIgnored = ignorer.ignores(path.relative(process.cwd(), filename));
} catch (_) {}
} catch (_) {
// eslint-disable-next-line no-empty
}

if (
fileIgnored &&
Expand Down
4 changes: 3 additions & 1 deletion src/common/get-file-info.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,9 @@ function _getFileInfo({
let ignored = true;
try {
ignored = ignorer.ignores(path.relative(process.cwd(), filePath));
} catch (_) {}
} catch (_) {
// eslint-disable-next-line no-empty
}

const fileInfo = {
ignored,
Expand Down

0 comments on commit 9522318

Please sign in to comment.