mirror of
https://github.com/github/codeql.git
synced 2026-04-28 10:15:14 +02:00
Minor simplification of finderMethodName predicate
This commit is contained in:
@@ -262,7 +262,7 @@ private string finderMethodName() {
|
||||
"fifth", "find", "find_by", "find_or_initialize_by", "find_or_create_by", "first",
|
||||
"forty_two", "fourth", "last", "second", "second_to_last", "take", "third", "third_to_last"
|
||||
] and
|
||||
(result = baseName or result = baseName + "!")
|
||||
result = baseName + ["", "!"]
|
||||
)
|
||||
or
|
||||
result = "new"
|
||||
|
||||
Reference in New Issue
Block a user