Skip to content

Commit

Permalink
command: add default diffInput to HEAD
Browse files Browse the repository at this point in the history
  • Loading branch information
grvcoelho committed May 4, 2018
1 parent f0b7b60 commit 0e0ecae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lint-diff.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ const reportResults = pipe(
])
)

const run = commitRange => Promise.resolve(commitRange)
const run = (commitRange = 'HEAD') => Promise.resolve(commitRange)
.then(getChangedFiles)
.map(getChangedFileLineMap(commitRange))
.then(applyLinter)
Expand Down

0 comments on commit 0e0ecae

Please sign in to comment.