Skip to content

Commit 1c7e5e6

Browse files
committed
Merge pull request github-tools#19 from coderaiser/patch-2
Added missing semicolons
2 parents cfcc6b4 + dcd1d73 commit 1c7e5e6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

github.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
}
2323

2424
var xhr = new XMLHttpRequest();
25-
if (!raw) {xhr.dataType = "json"}
25+
if (!raw) {xhr.dataType = "json";}
2626

2727
xhr.open(method, getURL());
2828
xhr.onreadystatechange = function () {
@@ -33,7 +33,7 @@
3333
cb({request: this, error: this.status});
3434
}
3535
}
36-
}
36+
};
3737
xhr.setRequestHeader('Accept','application/vnd.github.raw');
3838
xhr.setRequestHeader('Content-Type','application/json');
3939
if (
@@ -83,7 +83,7 @@
8383
_request("GET", "/users/"+username, null, function(err, res) {
8484
cb(err, res);
8585
});
86-
}
86+
};
8787

8888
// List user repositories
8989
// -------
@@ -342,7 +342,7 @@
342342
updateTree(branch, function(err, latestCommit) {
343343
that.getTree(latestCommit+"?recursive=true", function(err, tree) {
344344
// Update Tree
345-
var newTree = _.reject(tree, function(ref) { return ref.path === path });
345+
var newTree = _.reject(tree, function(ref) { return ref.path === path; });
346346
_.each(newTree, function(ref) {
347347
if (ref.type === "tree") delete ref.sha;
348348
});

0 commit comments

Comments
 (0)