Skip to content

Commit 72b5c97

Browse files
committed
simplify find handler init
1 parent d326ec9 commit 72b5c97

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

Sources/SakeCLI/SakeAppManager/SakeAppManagerFileHandle.swift

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,8 @@ final class DefaultSakeAppManagerFileHandle: SakeAppManagerFileHandle {
3131
path + "/Sakefile.swift"
3232
}
3333

34-
let defaultAppDirectoryName = "SakeApp"
35-
36-
init(path: String?) {
37-
if let path {
38-
self.path = URL(fileURLWithPath: path).standardizedFileURL.path
39-
} else {
40-
self.path = FileManager.default.currentDirectoryPath + "/" + defaultAppDirectoryName
41-
}
34+
init(path: String) {
35+
self.path = URL(fileURLWithPath: path).standardizedFileURL.path
4236
}
4337

4438
func createProjectFiles() throws {

0 commit comments

Comments
 (0)