Skip to content

Commit 561a681

Browse files
committed
Use location of condition for ConditionGuardNode
1 parent 759f058 commit 561a681

File tree

2 files changed

+156
-158
lines changed

2 files changed

+156
-158
lines changed

go/ql/lib/semmle/go/controlflow/ControlFlowGraph.qll

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -247,9 +247,7 @@ module ControlFlow {
247247
override predicate hasLocationInfo(
248248
string filepath, int startline, int startcolumn, int endline, int endcolumn
249249
) {
250-
cond.hasLocationInfo(filepath, _, _, startline, startcolumn) and
251-
endline = startline and
252-
endcolumn = startcolumn
250+
cond.hasLocationInfo(filepath, startline, startcolumn, endline, endcolumn)
253251
}
254252
}
255253

0 commit comments

Comments
 (0)