Skip to content

Commit

Permalink
Fix typo (php#15780)
Browse files Browse the repository at this point in the history
* Fix typo

* Implement conditional message

* Use suggested code with ternary

* Wrap ternary

Co-authored-by: Peter Kokot <[email protected]>

---------

Co-authored-by: Peter Kokot <[email protected]>
  • Loading branch information
DanielRuf and petk authored Sep 7, 2024
1 parent ac0931d commit dfe6c13
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion win32/build/confutils.js
Original file line number Diff line number Diff line change
Expand Up @@ -2096,7 +2096,9 @@ function generate_files()

if (INVALID_CONFIG_ARGS.length) {
STDOUT.WriteLine('WARNING');
STDOUT.WriteLine('The following arguments is invalid, and therefore ignored:');
STDOUT.WriteLine('The following ' +
(INVALID_CONFIG_ARGS.length > 1 ? 'arguments are' : 'argument is') +
' invalid, and therefore ignored:');

for (var i = 0; i < INVALID_CONFIG_ARGS.length; ++i) {
STDOUT.WriteLine(' ' + INVALID_CONFIG_ARGS[i]);
Expand Down

0 comments on commit dfe6c13

Please sign in to comment.