Explorar o código

fix strict code

Alan Colon %!s(int64=7) %!d(string=hai) anos
pai
achega
14657f41da
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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(' ')  
 }