Skip to content

Commit 1625191

Browse files
committed
Removing unnecessary bracket/singleton set literal.
1 parent 318e75c commit 1625191

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cpp/ql/src/Security/CWE/CWE-704/WcharCharConversion.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class UnlikelyToBeAStringType extends Type {
3939
exists(Type targ | getABaseType(this) = targ |
4040
// NOTE: not using CharType isUnsigned, but rather look for any explicitly declared unsigned
4141
// char types. Assuming these are used for buffers, not strings.
42-
targ.(CharType).getName().toLowerCase().matches(["unsigned%"]) or
42+
targ.(CharType).getName().toLowerCase().matches("unsigned%") or
4343
targ.getName().toLowerCase().matches(["uint8_t", "%byte%"])
4444
)
4545
}

0 commit comments

Comments
 (0)