Skip to content

Commit 7a864c5

Browse files
committed
Rust: Implement suggestion from review.
1 parent 5ca0bd0 commit 7a864c5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

rust/ql/src/queries/telemetry/DatabaseQuality.qll

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,12 @@ module MacroCallTargetStats implements StatsSig {
4949
result = count(MacroCall c | c.getFile() instanceof RelevantFile and c.hasMacroCallExpansion())
5050
}
5151

52-
additional predicate isNotOkCall(MacroCall c) { not c.hasMacroCallExpansion() }
53-
54-
int getNumberOfNotOk() {
55-
result = count(MacroCall c | c.getFile() instanceof RelevantFile and isNotOkCall(c))
52+
additional predicate isNotOkCall(MacroCall c) {
53+
c.getFile() instanceof RelevantFile and not c.hasMacroCallExpansion()
5654
}
5755

56+
int getNumberOfNotOk() { result = count(MacroCall c | isNotOkCall(c)) }
57+
5858
string getOkText() { result = "macro calls with call target" }
5959

6060
string getNotOkText() { result = "macro calls with missing call target" }

0 commit comments

Comments
 (0)