Skip to content

Commit

Permalink
add early return, quiet todo
Browse files Browse the repository at this point in the history
  • Loading branch information
mattjperez committed Feb 20, 2024
1 parent 841a745 commit ccf5bcd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion cli/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const (
aliasRobotFlag = "robot"
partFlag = "part"

// quiet any warnings.
// TODO: RSDK-6683
quietFlag = "quiet"

logsFlagErrors = "errors"
Expand Down
6 changes: 6 additions & 0 deletions cli/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -427,6 +427,12 @@ func CheckUpdateAction(c *cli.Context) error {
}

dateCompiledRaw := rconfig.DateCompiled

// `go build` will not set the compilation flags needed for this check
if dateCompiledRaw == "" {
return nil
}

dateCompiled, err := time.Parse("2006-01-02", dateCompiledRaw)
if err != nil {
warningf(c.App.ErrWriter, "CLI Update Check: failed to parse compilation date: %w", err)
Expand Down

0 comments on commit ccf5bcd

Please sign in to comment.