Refactoring

This commit is contained in:
Leon Böttger committed 2025-09-12 11:48:24 +02:00
1 parent f066a11608
commit bd4b181a49
1 file changed
+1 -6
@@ -653,12 +653,7 @@ class InboundNearbyConnection: NearbyConnection {
#endif
guard file.created else { continue }
do {
try FileManager.default.removeItem(at: file.destinationURL)
}
catch {
// if it fails, we don't care. Could be because file was not created yet
}
try? FileManager.default.removeItem(at: file.destinationURL)
}
}
}