Skip to content

Commit 54a089b

Browse files
committed
fixup! fixup! refactor: move UI layer code to main.go
1 parent c7f1bb9 commit 54a089b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

main.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,10 @@ func run(args []string) (int, string) {
6767
LockJSON: lockJSON,
6868
Config: cfg,
6969
})
70-
if result == nil {
71-
return 0, ""
70+
if result != nil {
71+
return result.Code, result.Msg
7272
}
73-
return result.Code, result.Msg
73+
return 0, ""
7474
}
7575

7676
func expandAlias(subCmd string, args []string) (string, []string, error) {

0 commit comments

Comments
 (0)