Skip to content

Commit af645db

Browse files
elianddbjycor
andauthored
update switch sql/expression/function/conv.go
Co-authored-by: James Cor <[email protected]>
1 parent 4ee9999 commit af645db

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sql/expression/function/conv.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,8 +152,8 @@ func convertFromBase(ctx *sql.Context, nVal string, fromBase interface{}) interf
152152

153153
// Handle sign
154154
negative := false
155-
switch {
156-
case nVal[0] == '-':
155+
switch case nVal[0] {
156+
case '-':
157157
if len(nVal) == 1 {
158158
return uint64(0)
159159
}

0 commit comments

Comments
 (0)