Skip to content

Commit

Permalink
fix(licensee): isWindows is a function
Browse files Browse the repository at this point in the history
  • Loading branch information
bufferoverflow committed Jul 23, 2017
1 parent 3b68aef commit 09a772b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rules/license-detectable-by-licensee.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const spawnSync = require('child_process').spawnSync
module.exports = function (targetDir, options) {
const expected = '\nLicense: ([^\n]*)'

const licenseeOutput = spawnSync(isWindows ? 'licensee.bat' : 'licensee', [targetDir]).stdout
const licenseeOutput = spawnSync(isWindows() ? 'licensee.bat' : 'licensee', [targetDir]).stdout

if (licenseeOutput == null) {
return {
Expand Down

0 comments on commit 09a772b

Please sign in to comment.