Skip to content

Commit 98b2ef0

Browse files
committed
Swift: Autoformat.
1 parent e6dc4d3 commit 98b2ef0

File tree

1 file changed

+5
-7
lines changed
  • swift/ql/lib/codeql/swift/frameworks/StandardLibrary

1 file changed

+5
-7
lines changed

swift/ql/lib/codeql/swift/frameworks/StandardLibrary/String.qll

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -150,13 +150,11 @@ private class StringFieldsInheritTaint extends TaintInheritingContent,
150150
or
151151
exists(FieldDecl fieldDecl, Decl declaringDecl, TypeDecl namedTypeDecl |
152152
(
153-
(
154-
namedTypeDecl.getFullName() = "CustomStringConvertible" and
155-
fieldDecl.getName() = "description"
156-
) or (
157-
namedTypeDecl.getFullName() = "CustomDebugStringConvertible" and
158-
fieldDecl.getName() = "debugDescription"
159-
)
153+
namedTypeDecl.getFullName() = "CustomStringConvertible" and
154+
fieldDecl.getName() = "description"
155+
or
156+
namedTypeDecl.getFullName() = "CustomDebugStringConvertible" and
157+
fieldDecl.getName() = "debugDescription"
160158
) and
161159
declaringDecl.getAMember() = fieldDecl and
162160
declaringDecl.asNominalTypeDecl() = namedTypeDecl.getADerivedTypeDecl*() and

0 commit comments

Comments
 (0)