Skip to content

Commit

Permalink
Fixbug: 'g ls'命令在未安装任何go版本情况下缺少必要的提示语。#14
Browse files Browse the repository at this point in the history
  • Loading branch information
voidint committed May 15, 2019
1 parent b53de56 commit f31ee5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli/ls.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (

func list(ctx *cli.Context) (err error) {
infos, err := ioutil.ReadDir(versionsDir)
if err != nil {
if err != nil || len(infos) <= 0 {
fmt.Printf("No version installed yet\n\n")
return nil
}
Expand Down

0 comments on commit f31ee5f

Please sign in to comment.