Skip to content

Commit 7850ab2

Browse files
committed
rename badlangs to otherlangs
1 parent cb110ba commit 7850ab2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ql/ql/src/queries/style/ConsistentAlertMessage.ql

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,17 +58,17 @@ Select parseSelect(string id, string lang, string msg, string fingerPrint) {
5858
not lang = "ql" // excluding QL-for-QL
5959
}
6060

61-
from Select sel, string id, string lang, string msg, string fingerPrint, string badLangs
61+
from Select sel, string id, string lang, string msg, string fingerPrint, string otherLangs
6262
where
6363
// for a select with a fingerprint
6464
sel = parseSelect(id, lang, msg, fingerPrint) and
6565
// there exists other languages with the same fingerprint, but other message
66-
badLangs =
66+
otherLangs =
6767
strictconcat(string bad |
6868
bad != lang and
6969
exists(parseSelect(id, bad, any(string otherMsg | otherMsg != msg), fingerPrint))
7070
|
7171
bad, ", "
7272
)
7373
select sel,
74-
"The " + lang + "/" + id + " query does not have the same alert message as " + badLangs + "."
74+
"The " + lang + "/" + id + " query does not have the same alert message as " + otherLangs + "."

0 commit comments

Comments
 (0)