Skip to content

Commit

Permalink
simplify find handler init
Browse files Browse the repository at this point in the history
  • Loading branch information
kattouf committed Jan 4, 2025
1 parent 6f38aec commit ab5b9c6
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions Sources/SakeCLI/SakeAppManager/SakeAppManagerFileHandle.swift
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,8 @@ final class DefaultSakeAppManagerFileHandle: SakeAppManagerFileHandle {
path + "/Sakefile.swift"
}

let defaultAppDirectoryName = "SakeApp"

init(path: String?) {
if let path {
self.path = URL(fileURLWithPath: path).standardizedFileURL.path
} else {
self.path = FileManager.default.currentDirectoryPath + "/" + defaultAppDirectoryName
}
init(path: String) {
self.path = URL(fileURLWithPath: path).standardizedFileURL.path
}

func createProjectFiles() throws {
Expand Down

0 comments on commit ab5b9c6

Please sign in to comment.