Ruby: fix some alerts

This commit is contained in:
Arthur Baars
2022-01-12 12:44:36 +01:00
parent 7630b277b8
commit ab4935fe68

View File

@@ -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())
)
}