소스 검색

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