Skip to content
This repository has been archived by the owner on Aug 7, 2023. It is now read-only.

Commit

Permalink
Don't specify rulesDir if not found (#843)
Browse files Browse the repository at this point in the history
  • Loading branch information
fcFn authored and Arcanemagus committed Mar 8, 2017
1 parent f469e9e commit 4f646b6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion lib/worker-helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,9 @@ function getArgv(type, config, rules, filePath, fileDir, givenConfigPath) {
if (!_path2.default.isAbsolute(rulesDir)) {
rulesDir = (0, _atomLinter.findCached)(fileDir, rulesDir);
}
argv.push('--rulesdir', rulesDir);
if (rulesDir) {
argv.push('--rulesdir', rulesDir);
}
}
if (configPath) {
argv.push('--config', (0, _resolveEnv2.default)(configPath));
Expand Down
4 changes: 3 additions & 1 deletion src/worker-helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,9 @@ export function getArgv(type, config, rules, filePath, fileDir, givenConfigPath)
if (!Path.isAbsolute(rulesDir)) {
rulesDir = findCached(fileDir, rulesDir)
}
argv.push('--rulesdir', rulesDir)
if (rulesDir) {
argv.push('--rulesdir', rulesDir)
}
}
if (configPath) {
argv.push('--config', resolveEnv(configPath))
Expand Down

0 comments on commit 4f646b6

Please sign in to comment.