Skip to content

Commit

Permalink
Merge pull request #199 from sylvainvillet/main
Browse files Browse the repository at this point in the history
Fixed force unwrap causing crashes when write fails (issue #194)
  • Loading branch information
donnywals authored Dec 20, 2024
2 parents 915bb14 + 635122c commit c3aa4b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/TUSKit/Files.swift
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ final class Files {

let targetLocation = storageDirectory.appendingPathComponent(fileName)

try! data.write(to: targetLocation, options: .atomic)
try data.write(to: targetLocation, options: .atomic)
return targetLocation
}
}
Expand Down

0 comments on commit c3aa4b7

Please sign in to comment.