Skip to content

feat: add version checking to CLI #2643

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 18 commits into from
Jun 29, 2022
Prev Previous commit
Next Next commit
remove unnecessary type cast
  • Loading branch information
sreya committed Jun 24, 2022
commit aa1ee2f5463ce267372971c4dcec8bf82c75dd3a
2 changes: 1 addition & 1 deletion codersdk/buildinfo.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ func (b BuildInfoResponse) TrimmedVersion() string {
// Linter doesn't like strings.Index...
idx := bytes.Index([]byte(b.Version), []byte("-devel"))
if idx < 0 {
return string(b.Version)
return b.Version
}

return b.Version[:idx]
Expand Down