Skip to content

Commit

Permalink
修复无版本更新时的报错
Browse files Browse the repository at this point in the history
  • Loading branch information
M4rtin Hsu committed Apr 23, 2023
1 parent 22afe6a commit 6e508bf
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions internal/cli/update.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ func updateTips(tagName string) error {
return nil
}
latest, err := updateFoFaXVersionToLatest()
if latest == nil {
return errors.New("latest version is nil")
}

if err != nil {
return err
}
Expand Down

0 comments on commit 6e508bf

Please sign in to comment.