We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 75614a7 + 913d1aa commit a14f085Copy full SHA for a14f085
src/ShellCheck/Checks/Commands.hs
@@ -691,7 +691,7 @@ checkPrintfVar = CommandCheck (Exactly "printf") (f . arguments) where
691
let formats = getPrintfFormats string
692
let formatCount = length formats
693
let argCount = length more
694
- let pluraliseIfMany word n = if n > 1 then word ++ "s" else word
+ let pluraliseIfMany word n = if n == 1 then word else word ++ "s"
695
696
return $ if
697
| argCount == 0 && formatCount == 0 ->
0 commit comments