Skip to content

Commit 46277c2

Browse files
committed
Fix some linting error
1 parent c3414e2 commit 46277c2

File tree

4 files changed

+9
-5
lines changed

4 files changed

+9
-5
lines changed

.eslintrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"env": {
1414
"node": true,
1515
"mocha": true,
16-
"browser": false,
16+
"browser": true,
1717
"jasmine": true
1818
},
1919
"globals": {

bin/commit.js

+4
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ module.exports = command('commit', function(repo, args, kwargs) {
1212
return change.isTracked();
1313
});
1414

15+
// todo
16+
var author = null;
17+
var message = kwargs.message;
18+
1519
return Git.CommitUtils.createForChanges(repo, author, message, changes);
1620
});
1721
}, [

lib/TreeUtils/applyChanges.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
var Tree = require('../models/tree');
1+
// var Tree = require('../models/tree');
22

33
/**
44
* Apply changes to a tree
@@ -8,7 +8,7 @@ var Tree = require('../models/tree');
88
* @return newTreeSha
99
*/
1010
function applyChanges(repo, treeSha, changes) {
11-
var toApply = changes.filter(function(change, filePath) {
11+
/* var toApply = changes.filter(function(change, filePath) {
1212
var parts = filePath.split('/');
1313
return parts.length === 1;
1414
});
@@ -19,7 +19,7 @@ function applyChanges(repo, treeSha, changes) {
1919
var entries = tree.getEntries();
2020
2121
// TODO
22-
});
22+
}); */
2323
}
2424

2525
module.exports = applyChanges;

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"varint": "^4.0.0"
3333
},
3434
"devDependencies": {
35-
"eslint": "^2.7.0",
35+
"eslint": "^2.13.0",
3636
"expect": "^1.19.0",
3737
"into-stream": "^2.0.0",
3838
"mocha": "2.3.4"

0 commit comments

Comments
 (0)