Skip to content

Commit 12a4522

Browse files
committed
Remove explicit conversion to int
1 parent c10b0dd commit 12a4522

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rand/rand.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ func RandomString(length int, charset string) (string, error) {
1212
if err != nil {
1313
return "", err
1414
}
15-
b[i] = charset[int(j)]
15+
b[i] = charset[j]
1616
}
1717

1818
return string(b), nil

0 commit comments

Comments
 (0)