Skip to content

Commit c3aa4b7

Browse files
authored
Merge pull request #199 from sylvainvillet/main
Fixed force unwrap causing crashes when write fails (issue #194)
2 parents 915bb14 + 635122c commit c3aa4b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/TUSKit/Files.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ final class Files {
152152

153153
let targetLocation = storageDirectory.appendingPathComponent(fileName)
154154

155-
try! data.write(to: targetLocation, options: .atomic)
155+
try data.write(to: targetLocation, options: .atomic)
156156
return targetLocation
157157
}
158158
}

0 commit comments

Comments
 (0)