Skip to content

Commit

Permalink
Fix linter error in launch_policy.go
Browse files Browse the repository at this point in the history
This error blocks all current PRs.
  • Loading branch information
deeglaze committed Oct 26, 2023
1 parent 44e8925 commit 073517d
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions launcher/spec/launch_policy.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,14 @@ func toLogRedirectPolicy(s string) (logRedirectPolicy, error) {
s = strings.ToLower(s)
s = strings.TrimSpace(s)

if s == "always" {
switch s {
case "always":
return always, nil
} else if s == "never" {
case "never":
return never, nil
} else if s == "debugonly" {
case "debugonly":
return debugOnly, nil
} else {
default:
return 0, fmt.Errorf("not a valid LogRedirectPolicy %s (must be one of [always, never, debugonly])", s)
}
}
Expand Down

0 comments on commit 073517d

Please sign in to comment.