Skip to content

Commit

Permalink
Clean up comments
Browse files Browse the repository at this point in the history
  • Loading branch information
GeorgeLyon committed Oct 21, 2023
1 parent 88cd771 commit 65b2571
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Sources/SKCore/CompilationDatabase.swift
Original file line number Diff line number Diff line change
Expand Up @@ -115,14 +115,14 @@ public struct FixedCompilationDatabase: CompilationDatabase, Equatable {

extension FixedCompilationDatabase {
/// Loads the compilation database located in `directory`, if any.
/// returns: `nil` if `compile_flags.txt` was not found
/// - Returns: `nil` if `compile_flags.txt` was not found
public init?(directory: AbsolutePath, _ fileSystem: FileSystem = localFileSystem) throws {
let path = directory.appending(component: "compile_flags.txt")
try self.init(file: path, fileSystem)
}

/// Loads the compilation database from `file`
/// returns: `nil` if the file does not exist
/// - Returns: `nil` if the file does not exist
public init?(file: AbsolutePath, _ fileSystem: FileSystem = localFileSystem) throws {
self.directory = file.dirname

Expand Down Expand Up @@ -217,7 +217,7 @@ extension JSONCompilationDatabase {
}

/// Loads the compilation database from `file`
/// returns: `nil` if the file does not exist
/// - Returns: `nil` if the file does not exist
public init?(file: AbsolutePath, _ fileSystem: FileSystem = localFileSystem) throws {
guard fileSystem.exists(file) else {
return nil
Expand Down

0 comments on commit 65b2571

Please sign in to comment.