Update Logging.qll

Simplified using a set-literal as suggested by @intrigus-lgtm
This commit is contained in:
Daniel Santos
2021-09-16 13:03:26 -05:00
committed by GitHub
parent af8b2b6d9c
commit 032a7e71fe

View File

@@ -30,12 +30,7 @@ class LoggingCall extends MethodAccess {
or
exists(RefType t, Method m | t.hasQualifiedName("android.util", "Log") |
(
m.hasName("d") or
m.hasName("e") or
m.hasName("i") or
m.hasName("v") or
m.hasName("w") or
m.hasName("wtf")
m.hasName(["d", "e", "i", "v", "w", "wtf"])
) and
(
m.getDeclaringType().getASourceSupertype*() = t or