Skip to content

Commit

Permalink
chore: Lint happy
Browse files Browse the repository at this point in the history
  • Loading branch information
dignifiedquire committed Sep 21, 2015
1 parent a927d8a commit 099f805
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions lib/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -201,8 +201,8 @@ var processAnswers = function (answers, basePath, testMainFile) {

var allPatterns = answers.files.concat(answers.includedFiles || [])
if (allPatterns.some(function (pattern) {
return mm(pattern, '**/*.coffee')
})) {
return mm(pattern, '**/*.coffee')
})) {
installPackage('karma-coffee-preprocessor')
processedAnswers.preprocessors['**/*.coffee'] = ['coffee']
}
Expand Down
4 changes: 2 additions & 2 deletions lib/launcher.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,8 @@ var Launcher = function (emitter, injector) {

this.areAllCaptured = function () {
return !browsers.some(function (browser) {
return !browser.isCaptured()
})
return !browser.isCaptured()
})
}

this.markCaptured = function (id) {
Expand Down
12 changes: 6 additions & 6 deletions lib/watcher.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ var watchPatterns = function (patterns, watcher) {
// watch only common parents, no sub paths
pathsToWatch.forEach(function (path) {
if (!pathsToWatch.some(function (p) {
return p !== path && path.substr(0, p.length + 1) === p + DIR_SEP
})) {
return p !== path && path.substr(0, p.length + 1) === p + DIR_SEP
})) {
watcher.add(path)
log.debug('Watching "%s"', path)
}
Expand All @@ -52,15 +52,15 @@ var createIgnore = function (patterns, excludes) {

// Check if the path matches any of the watched patterns.
if (!patterns.some(function (pattern) {
return mm(path, pattern, {dot: true})
})) {
return mm(path, pattern, {dot: true})
})) {
return true
}

// Check if the path matches any of the exclude patterns.
if (excludes.some(function (pattern) {
return mm(path, pattern, {dot: true})
})) {
return mm(path, pattern, {dot: true})
})) {
return true
}

Expand Down
2 changes: 1 addition & 1 deletion test/unit/init.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ describe('init', () => {

describe('processAnswers', () => {
var answers = obj => {
obj = obj ? obj : {}
obj = obj || {}
obj.files = obj.files || []
obj.exclude = obj.exclude || []
obj.browsers = obj.browsers || []
Expand Down

0 comments on commit 099f805

Please sign in to comment.