Skip to content

Commit ab4935f

Browse files
committed
Ruby: fix some alerts
1 parent 7630b27 commit ab4935f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ruby/ql/lib/codeql/ruby/ast/internal/Synthesis.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -936,7 +936,7 @@ private module ImplicitHashValueSynthesis {
936936
private Ruby::AstNode keyWithoutValue(HashPattern parent, int i) {
937937
exists(Ruby::KeywordPattern pair |
938938
result = pair.getKey() and
939-
result = toGenerated(parent.(HashPattern).getKey(i)) and
939+
result = toGenerated(parent.getKey(i)) and
940940
not exists(pair.getValue())
941941
)
942942
}

0 commit comments

Comments
 (0)