Skip to content

Commit 42dd626

Browse files
committed
fixed staticcheck with double negation
1 parent 2e81401 commit 42dd626

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

formatter.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,7 @@ func FormatComplex(template string, args map[string]any) string {
407407

408408
arg, ok = args[argKey]
409409
}
410-
if ok || (argFormatOptions != "" && !!repeatingOpenBracketsCollected) {
410+
if ok || argFormatOptions != "" {
411411
// get number from placeholder
412412
strVal := ""
413413
if arg != nil {

0 commit comments

Comments
 (0)