mirror of
https://github.com/github/codeql.git
synced 2025-12-20 18:56:32 +01:00
Removing unnecessary bracket/singleton set literal.
This commit is contained in:
@@ -39,7 +39,7 @@ class UnlikelyToBeAStringType extends Type {
|
||||
exists(Type targ | getABaseType(this) = targ |
|
||||
// NOTE: not using CharType isUnsigned, but rather look for any explicitly declared unsigned
|
||||
// char types. Assuming these are used for buffers, not strings.
|
||||
targ.(CharType).getName().toLowerCase().matches(["unsigned%"]) or
|
||||
targ.(CharType).getName().toLowerCase().matches("unsigned%") or
|
||||
targ.getName().toLowerCase().matches(["uint8_t", "%byte%"])
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user