Skip to content

Commit 943821c

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

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
@@ -215,10 +215,7 @@ extension JSONCompilationDatabase {
215215
/// returns: `nil` if `compile_commands.json` was not found
216216
public init?(directory: AbsolutePath, _ fileSystem: FileSystem = localFileSystem) throws {
217217
let path = directory.appending(component: "compile_commands.json")
218-
guard let database = try Self(file: path, fileSystem) else {
219-
return nil
220-
}
221-
self = database
218+
try self.init(file: path, fileSystem)
222219
}
223220

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

0 commit comments

Comments
 (0)