Skip to content

Commit 7c0f80f

Browse files
maikypediageoffw0
andauthored
Apply suggestions from code review
Co-authored-by: Geoffrey White <[email protected]>
1 parent 7fb72ea commit 7c0f80f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

swift/ql/test/query-tests/Security/CWE-022-Unsafe-Unpack/UnsafeUnpack.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,15 +52,15 @@ extension String {
5252
// --- tests ---
5353

5454
func testCommandInjectionQhelpExamples() {
55-
guard let remoteURL = URL(string: "https://example.com/") else {
56-
return
57-
}
55+
guard let remoteURL = URL(string: "https://example.com/") else {
56+
return
57+
}
5858

5959
let source = URL(fileURLWithPath: "/sourcePath")
6060
let destination = URL(fileURLWithPath: "/destination")
6161

6262
try Data(contentsOf: remoteURL, options: []).write(to: source)
63-
do {
63+
do {
6464
try Zip.unzipFile(source, destination: destination, overwrite: true, password: nil) // BAD
6565

6666
let fileManager = FileManager()

0 commit comments

Comments
 (0)