Skip to content

Commit ed175eb

Browse files
committed
Satisfy logical-assignment-operators ESLint rule
Signed-off-by: Kevin Locke <[email protected]>
1 parent d468fa8 commit ed175eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/git-branch-is.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ function gitBranchIsCmd(args, callback) {
9090
cmdOpts.gitArgs = cmdOpts.gitArg;
9191

9292
// treat --not as an alias for --invert-match
93-
cmdOpts.invertMatch = cmdOpts.invertMatch || cmdOpts.not;
93+
cmdOpts.invertMatch ||= cmdOpts.not;
9494

9595
const expectedBranch = command.args[0];
9696

0 commit comments

Comments
 (0)