Skip to content

Commit

Permalink
[Fix] avoid template literal syntax
Browse files Browse the repository at this point in the history
Fixes #255. Fixes #254.
  • Loading branch information
ljharb committed Feb 11, 2019
1 parent 3807e16 commit 672ff96
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions factoryWithTypeCheckers.js
Expand Up @@ -307,8 +307,8 @@ module.exports = function(isValidElement, throwOnDirectAccess) {
if (process.env.NODE_ENV !== 'production') {
if (arguments.length > 1) {
printWarning(
`Invalid arguments supplied to oneOf, expected an array, got ${arguments.length} arguments. ` +
`A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).`
'Invalid arguments supplied to oneOf, expected an array, got ' + arguments.length + ' arguments. ' +
'A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).'
);
} else {
printWarning('Invalid argument supplied to oneOf, expected an array.');
Expand Down

0 comments on commit 672ff96

Please sign in to comment.