Skip to content

Commit

Permalink
fix: indent-error-flow lint (#1795)
Browse files Browse the repository at this point in the history
Signed-off-by: Keming <kemingyang@tensorchord.ai>
  • Loading branch information
kemingy committed Oct 30, 2023
1 parent cbf74f1 commit 4c13224
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions pkg/envd/docker.go
Original file line number Diff line number Diff line change
Expand Up @@ -706,9 +706,8 @@ func (e dockerEngine) GPUEnabled(ctx context.Context) (bool, error) {
} else if strings.HasSuffix(info.KernelVersion, "WSL2") {
logrus.Warn("We couldn't detect if your runtime support GPU on WSL2, we will continue to run your environment.")
return true, nil
} else {
return false, nil
}
return false, nil
}

func (e dockerEngine) GetImage(ctx context.Context, image string) (types.EnvdImage, error) {
Expand Down
3 changes: 1 addition & 2 deletions pkg/metrics/widget.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,6 @@ func colorScale(n int) ui.Color {
return ui.ColorGreen
} else if n < 80 {
return ui.ColorYellow
} else {
return ui.ColorRed
}
return ui.ColorRed
}

0 comments on commit 4c13224

Please sign in to comment.