Skip to content

Commit 6f2eefb

Browse files
committed
Fix staticcheck QF1001: apply De Morgan's law in isFullSHA
1 parent 98728f2 commit 6f2eefb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cmd/gradle-cache/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -836,7 +836,7 @@ func isFullSHA(s string) bool {
836836
return false
837837
}
838838
for _, c := range s {
839-
if !((c >= '0' && c <= '9') || (c >= 'a' && c <= 'f')) {
839+
if (c < '0' || c > '9') && (c < 'a' || c > 'f') {
840840
return false
841841
}
842842
}

0 commit comments

Comments
 (0)