Skip to content

Commit 183ea7e

Browse files
GeorgeLyonahoppen
andauthored
Update Sources/SKCore/CompilationDatabase.swift
Co-authored-by: Alex Hoppen <[email protected]>
1 parent 943821c commit 183ea7e

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

Sources/SKCore/CompilationDatabase.swift

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -118,10 +118,7 @@ extension FixedCompilationDatabase {
118118
/// returns: `nil` if `compile_flags.txt` was not found
119119
public init?(directory: AbsolutePath, _ fileSystem: FileSystem = localFileSystem) throws {
120120
let path = directory.appending(component: "compile_flags.txt")
121-
guard let database = try Self(file: path, fileSystem) else {
122-
return nil
123-
}
124-
self = database
121+
try self.init(file: path, fileSystem)
125122
}
126123

127124
/// Loads the compilation database from `file`

0 commit comments

Comments
 (0)