Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit aa1ee2f

Browse files
committed
remove unnecessary type cast
1 parent ff7d39e commit aa1ee2f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

codersdk/buildinfo.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ func (b BuildInfoResponse) TrimmedVersion() string {
2323
// Linter doesn't like strings.Index...
2424
idx := bytes.Index([]byte(b.Version), []byte("-devel"))
2525
if idx < 0 {
26-
return string(b.Version)
26+
return b.Version
2727
}
2828

2929
return b.Version[:idx]

0 commit comments

Comments
 (0)