File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Sources/CryptomatorCryptoLib Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -216,8 +216,8 @@ public class Cryptor {
216
216
defer { ciphertextStream. close ( ) }
217
217
218
218
// determine cleartext size:
219
- let attributes = try ? FileManager . default. attributesOfItem ( atPath: cleartextURL. path)
220
- let cleartextSize = attributes ? [ FileAttributeKey . size] as? Int
219
+ let attributes = try FileManager . default. attributesOfItem ( atPath: cleartextURL. path)
220
+ let cleartextSize = attributes [ FileAttributeKey . size] as? Int
221
221
222
222
// encrypt:
223
223
try encryptContent ( from: cleartextStream, to: ciphertextStream, cleartextSize: cleartextSize)
@@ -277,8 +277,8 @@ public class Cryptor {
277
277
defer { cleartextStream. close ( ) }
278
278
279
279
// determine ciphertext size:
280
- let attributes = try ? FileManager . default. attributesOfItem ( atPath: ciphertextURL. path)
281
- let ciphertextSize = attributes ? [ FileAttributeKey . size] as? Int
280
+ let attributes = try FileManager . default. attributesOfItem ( atPath: ciphertextURL. path)
281
+ let ciphertextSize = attributes [ FileAttributeKey . size] as? Int
282
282
283
283
// decrypt:
284
284
try decryptContent ( from: ciphertextStream, to: cleartextStream, ciphertextSize: ciphertextSize)
You can’t perform that action at this time.
0 commit comments