General cleanup

This commit is contained in:
Henrik Lissner 2017-02-08 02:02:51 -05:00
parent a18e8f0104
commit 9bd8c6cc21
6 changed files with 14 additions and 33 deletions

View file

@ -71,7 +71,7 @@
(hash (gethash project-path npm-conf))
(package-file (expand-file-name "package.json" project-path))
deps)
(when-let (json (and (not hash) (f-exists? package-file)
(ignore-errors (json-read-file package-file))))
(-when-let (json (and (not hash) (f-exists? package-file)
(ignore-errors (json-read-file package-file))))
(puthash project-path json npm-conf))))