Skip to content

Commit 796db68

Browse files
author
John Haley
committed
Fix linter issues
1 parent d31140f commit 796db68

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

examples/create-branch.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
var nodegit = require("../");
22
var path = require("path");
3-
var Promise = require("nodegit-promise");
4-
var promisify = require("promisify-node");
5-
var fse = promisify(require("fs-extra"));
63

74
nodegit.Repository.open(path.resolve(__dirname, "../.git"))
85
.then(function(repo) {
@@ -15,7 +12,7 @@ nodegit.Repository.open(path.resolve(__dirname, "../.git"))
1512
0,
1613
repo.defaultSignature(),
1714
"Created new-branch on HEAD");
18-
})
15+
});
1916
}).done(function() {
2017
console.log("All done!");
2118
});

examples/walk-history-for-file.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,10 @@ nodegit.Repository.open(path.resolve(__dirname, "../.git"))
1818
return commit.getDiff()
1919
.then(function(diffList) {
2020
var addCommit = diffList.reduce(function(prevVal, diff) {
21-
var result = prevVal || diff.patches().reduce(function(prevValDiff, patch) {
21+
var result =
22+
prevVal ||
23+
diff.patches().reduce(function(prevValDiff, patch) {
24+
2225
var result =
2326
prevValDiff ||
2427
!!~patch.oldFile().path().indexOf("descriptor.json") ||

0 commit comments

Comments
 (0)