فهرست منبع

fix strict code

Alan Colon 7 سال پیش
والد
کامیت
14657f41da
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  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(' ')  
 }