Skip to content

Commit 489a87f

Browse files
committed
Small QL improvement
1 parent f928e4c commit 489a87f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

go/ql/lib/semmle/go/frameworks/GinCors.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ module GinCors {
128128

129129
GinConfig() {
130130
this = v.getBaseVariable().getSourceVariable() and
131-
exists(Type t | t.hasQualifiedName(packagePath(), "Config") | v.getType() = t)
131+
v.getType().hasQualifiedName(packagePath(), "Config")
132132
}
133133

134134
/**

go/ql/lib/semmle/go/frameworks/RsCors.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ module RsCors {
173173

174174
RsOptions() {
175175
this = v.getBaseVariable().getSourceVariable() and
176-
exists(Type t | t.hasQualifiedName(packagePath(), "Options") | v.getType() = t)
176+
v.getType().hasQualifiedName(packagePath(), "Options")
177177
}
178178

179179
/**

0 commit comments

Comments
 (0)