fix variable scope
This commit is contained in:
1 parent
9469f4293c
commit
1bc5e34c9d
1 file changed
+1
-1
@@ -895,8 +895,8 @@ exports.newHttpInterface = function newHttpInterface() {
|
||||
|
||||
// Check to see it main repo has been set as upstream
|
||||
let remotes = await git.getRemotes();
|
||||
let isUpstreamSet
|
||||
for(let remote in remotes) {
|
||||
let isUpstreamSet
|
||||
if (remotes[remote].name === 'upstream') {
|
||||
isUpstreamSet = true
|
||||
} else {
|
||||
|
||||
Reference in new issue
Block a user