Skip to content

Commit

Permalink
Fix .forEach to for-in replacement
Browse files Browse the repository at this point in the history
  • Loading branch information
fpseverino committed Sep 25, 2024
1 parent bb4491c commit 867deb3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Sources/Orders/OrdersServiceCustom.swift
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ extension OrdersServiceCustom {
let paths = try FileManager.default.subpathsOfDirectory(atPath: root.path)
for relativePath in paths {
let file = URL(fileURLWithPath: relativePath, relativeTo: root)
guard !file.hasDirectoryPath else { return }
guard !file.hasDirectoryPath else { continue }
let data = try Data(contentsOf: file)
let hash = SHA256.hash(data: data)
manifest[relativePath] = hash.map { "0\(String($0, radix: 16))".suffix(2) }.joined()
Expand Down
2 changes: 1 addition & 1 deletion Sources/Passes/PassesServiceCustom.swift
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,7 @@ extension PassesServiceCustom {
let paths = try FileManager.default.subpathsOfDirectory(atPath: root.path)
for relativePath in paths {
let file = URL(fileURLWithPath: relativePath, relativeTo: root)
guard !file.hasDirectoryPath else { return }
guard !file.hasDirectoryPath else { continue }
let data = try Data(contentsOf: file)
let hash = Insecure.SHA1.hash(data: data)
manifest[relativePath] = hash.map { "0\(String($0, radix: 16))".suffix(2) }.joined()
Expand Down

0 comments on commit 867deb3

Please sign in to comment.