Skip to content

Commit 9e0d487

Browse files
author
Eric Miller
committed
Resolve broken argument
1 parent 02732ff commit 9e0d487

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

Sources/UBKit/UBKit.swift

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public final class UBKit {
4545
}
4646

4747
let workingPath = fileManager.currentDirectoryPath.appending("/")
48-
if arg != .initialize {
48+
if arg != .config {
4949
guard let fileData = fileManager.contents(atPath: workingPath.appending("ubconfig.json")) else {
5050
completion(UBKitError.invalidFolder(workingPath.appending("ubconfig.json")))
5151
return
@@ -63,8 +63,6 @@ public final class UBKit {
6363
switch arg {
6464
case .config:
6565
createConfiguration(workingPath: workingPath, completion)
66-
case .initialize:
67-
break
6866
case .generate:
6967
generate(manager: kitManager, completion)
7068
}
@@ -85,7 +83,6 @@ private extension UBKit {
8583

8684
enum Argument: String {
8785
case config
88-
case initialize = "init"
8986
case generate
9087
}
9188

0 commit comments

Comments
 (0)