From 095b831ca30bd75470a0e2898e4cb66668957f60 Mon Sep 17 00:00:00 2001 From: Michael Fogleman Date: Thu, 1 Jan 2015 15:59:51 -0500 Subject: [PATCH] Only check once if "list" is the action. --- src/leiningen/plz.clj | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/leiningen/plz.clj b/src/leiningen/plz.clj index 8b0d8c4..9ae516a 100644 --- a/src/leiningen/plz.clj +++ b/src/leiningen/plz.clj @@ -658,8 +658,7 @@ (try (cond (and (= "add" action) (seq args)) (add-deps project args) - (and (= "list" action) (seq args)) (list-nicks (str/join " " args)) - (= "list" action) (list-all) + (= "list" action) (if (seq args) (list-nicks (str/join " " args)) (list-all)) (nil? action) (print-instructions) :else (do (main/info (format "\"%s\" is not a proper command.")) (print-instructions)))