From 3b9bf9bb446d000074a603a9803bf0aff769b0a3 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Thu, 5 Oct 2017 13:14:25 +0200 Subject: [PATCH] =?UTF-8?q?Fix=20'variable=20reference=20to=20nil=E2=80=99?= =?UTF-8?q?=20compiler=20warning?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/lang/javascript/config.el | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/lang/javascript/config.el b/modules/lang/javascript/config.el index 077cfc00e..abcca44ab 100644 --- a/modules/lang/javascript/config.el +++ b/modules/lang/javascript/config.el @@ -196,9 +196,9 @@ :modes (html-mode css-mode web-mode js2-mode markdown-mode) :files "package.json" :on-enter - (push (doom-project-expand "node_modules/.bin") - (if (make-local-variable 'exec-path) - exec-path))) + (when (make-local-variable 'exec-path) + (push (doom-project-expand "node_modules/.bin") + exec-path))) ;;