Skip to content

Commit 6e1acf2

Browse files
fixed the build error
1 parent 4b259ea commit 6e1acf2

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

Sources/Helpers/APIServer/DirectoryWatcher.swift

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,6 @@ public class DirectoryWatcher {
4747
log.info("starting directory watcher for \(directoryURL.path)")
4848

4949
let descriptor = open(directoryURL.path, O_EVTONLY)
50-
guard descriptor >= 0 else {
51-
throw ContainerizationError(.fileNotFound, message: "failed to open directory for watching: \(directoryURL.path)")
52-
}
5350

5451
let dispatchSource = DispatchSource.makeFileSystemObjectSource(
5552
fileDescriptor: descriptor,

0 commit comments

Comments
 (0)