Skip to content

Commit 77d0fae

Browse files
authored
Merge pull request #115 from keyxmakerx/claude/fix-navbar-features-page-8RZuE
fix: apply De Morgan's law to satisfy staticcheck QF1001
2 parents 6e55939 + 24ff70f commit 77d0fae

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

internal/plugins/campaigns/service.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -719,7 +719,7 @@ func isValidHexColor(s string) bool {
719719
return false
720720
}
721721
for _, c := range s[1:] {
722-
if !((c >= '0' && c <= '9') || (c >= 'a' && c <= 'f') || (c >= 'A' && c <= 'F')) {
722+
if (c < '0' || c > '9') && (c < 'a' || c > 'f') && (c < 'A' || c > 'F') {
723723
return false
724724
}
725725
}

0 commit comments

Comments
 (0)