Skip to content

Commit b53e89c

Browse files
committed
Fix operator precedence in section boundary check
1 parent 49b197d commit b53e89c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/check-dependency-bumps.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ async function parseDiff(
115115
}
116116

117117
// Check if we're leaving a section
118-
if ((currentSection && line.trim() === '},') || line.trim() === '}') {
118+
if (currentSection && (line.trim() === '},' || line.trim() === '}')) {
119119
// Check if next line is another section we care about
120120
const nextLine = lines[i + 1];
121121

0 commit comments

Comments
 (0)