Skip to content

Commit ea25ae9

Browse files
committed
refactor: tweak
1 parent 9fb9ed7 commit ea25ae9

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

lib/index.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,17 +64,15 @@ module.exports = class Core {
6464
}
6565
})
6666

67-
if (options.scope) {
67+
if (this.isRemotes && options.scope) {
6868
branch = matcher(branch, [`${options.scope}/**`]).map(b => {
6969
if (!b.includes('->')) {
7070
return b.replace(`${options.scope}/`, '')
7171
}
7272
})
7373
}
7474

75-
branch = branch.filter(Boolean)
76-
77-
return branch
75+
return branch.filter(Boolean)
7876
}
7977

8078
deleteBranch(branches, options) {

0 commit comments

Comments
 (0)