Skip to content

Commit

Permalink
fix some lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed Oct 3, 2016
1 parent ac03fee commit a00cf57
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const optionsManager = require('./options-manager');
exports.lintText = (str, opts) => {
opts = optionsManager.preprocess(opts);

if (opts.overrides && opts.overrides.length) {
if (opts.overrides && opts.overrides.length > 0) {
const overrides = opts.overrides;
delete opts.overrides;

Expand Down
2 changes: 1 addition & 1 deletion test/options-manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ test('findApplicableOverrides', t => {
{files: '**/*.txt'}
]);

t.is(result.hash, parseInt('1010', 2));
t.is(result.hash, 0b1010);
t.deepEqual(result.applicable, [
{files: '**/f*.js'},
{files: '**/*oo.js'}
Expand Down

0 comments on commit a00cf57

Please sign in to comment.