We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3b043c9 commit 9fd038dCopy full SHA for 9fd038d
1 file changed
go/cmd/bundler/main.go
@@ -229,7 +229,7 @@ func fetchCLIVersionFromRepo(sdkVersion string) (string, error) {
229
// isHex returns true if s contains only hexadecimal characters.
230
func isHex(s string) bool {
231
for _, c := range s {
232
- if !((c >= '0' && c <= '9') || (c >= 'a' && c <= 'f') || (c >= 'A' && c <= 'F')) {
+ if (c < '0' || c > '9') && (c < 'a' || c > 'f') && (c < 'A' || c > 'F') {
233
return false
234
}
235
0 commit comments