Skip to content

Commit da4bd1e

Browse files
committed
Code cleanup
1 parent 04a1502 commit da4bd1e

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

lib/debug.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
'use strict'
2+
3+
module.exports = require('debug')('git-att')

lib/git.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ var os = require('os')
44
var path = require('path')
55
var exec = require('child_process').exec
66
var afterAll = require('after-all-results')
7-
var debug = require('debug')('git-status')
7+
var debug = require('./debug')
88

99
exports.check = function (cwd, dir, cb) {
1010
debug('processing git project', dir)

lib/scan.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
var fs = require('fs')
44
var path = require('path')
5-
var debug = require('debug')('git-status')
65
var filter = require('patterns')([/^\./, /\/\./])
6+
var debug = require('./debug')
77

88
module.exports = function (cwd, dir) {
99
if (!dir) dir = cwd
@@ -20,7 +20,7 @@ module.exports = function (cwd, dir) {
2020

2121
if (~content.indexOf('.git')) return [dir]
2222

23-
return content.map(joinWith(dir)).filter(isDir).reduce(function (result, dir) {
23+
return content.map(joinPathWith(dir)).filter(isDir).reduce(function (result, dir) {
2424
return result.concat(module.exports(cwd, dir))
2525
}, [])
2626
}
@@ -33,7 +33,7 @@ var isDir = function (path) {
3333
}
3434
}
3535

36-
var joinWith = function (a) {
36+
var joinPathWith = function (a) {
3737
return function (b) {
3838
return path.join(a, b)
3939
}

0 commit comments

Comments
 (0)