Ver código fonte

fix strict code

Alan Colon 7 anos atrás
pai
commit
14657f41da
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      lib/crud/defaults.js

+ 1 - 1
lib/crud/defaults.js

@@ -27,7 +27,7 @@ const pluralLib = require('plural')
  */
 
 const plural = text => {
-  words = title(text).split(' ')
+  const words = title(text).split(' ')
   words[words.length - 1] = pluralLib(words[words.length - 1].toLowerCase())
   return words.join(' ')  
 }