mirror of
https://github.com/github/codeql.git
synced 2026-05-05 13:45:19 +02:00
Ruby: fix some alerts
This commit is contained in:
@@ -936,7 +936,7 @@ private module ImplicitHashValueSynthesis {
|
||||
private Ruby::AstNode keyWithoutValue(HashPattern parent, int i) {
|
||||
exists(Ruby::KeywordPattern pair |
|
||||
result = pair.getKey() and
|
||||
result = toGenerated(parent.(HashPattern).getKey(i)) and
|
||||
result = toGenerated(parent.getKey(i)) and
|
||||
not exists(pair.getValue())
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user