Skip to content

Commit 25b4296

Browse files
committed
Swift: Rename predicate to avoid confusion.
1 parent 24c8f1d commit 25b4296

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

swift/ql/src/queries/Summary/FlowSources.ql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@
1212
import swift
1313
import codeql.swift.dataflow.FlowSources
1414

15-
string sourceType(FlowSource s) {
15+
string sourceClass(FlowSource s) {
1616
s instanceof LocalFlowSource and result = "LocalFlowSource"
1717
or
1818
s instanceof RemoteFlowSource and result = "RemoteFlowSource"
1919
}
2020

2121
from FlowSource s
22-
select s, sourceType(s) + ": " + s.getSourceType()
22+
select s, sourceClass(s) + ": " + s.getSourceType()

0 commit comments

Comments
 (0)