瀏覽代碼

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(' ')  
 }