We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e1017a4 commit 943821cCopy full SHA for 943821c
Sources/SKCore/CompilationDatabase.swift
@@ -215,10 +215,7 @@ extension JSONCompilationDatabase {
215
/// returns: `nil` if `compile_commands.json` was not found
216
public init?(directory: AbsolutePath, _ fileSystem: FileSystem = localFileSystem) throws {
217
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
+ try self.init(file: path, fileSystem)
222
}
223
224
/// Loads the compilation database from `file`
0 commit comments