mirror of
https://github.com/leonboe1/QuickDrop.git
synced 2026-11-21 05:46:03 +00:00
Refactoring
This commit is contained in:
1 parent
f066a11608
commit
bd4b181a49
1 file changed
+1
-6
@@ -653,12 +653,7 @@ class InboundNearbyConnection: NearbyConnection {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
guard file.created else { continue }
|
guard file.created else { continue }
|
||||||
do {
|
try? FileManager.default.removeItem(at: file.destinationURL)
|
||||||
try FileManager.default.removeItem(at: file.destinationURL)
|
|
||||||
}
|
|
||||||
catch {
|
|
||||||
// if it fails, we don't care. Could be because file was not created yet
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user