aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2017-03-26 17:31:03 -0400
committerKyle Meyer <kyle@kyleam.com>2017-03-26 21:21:31 -0400
commit74afb582c08d692555e42ce29a37f15305e66f25 (patch)
treece726c377649934eb4afe93f65ffceb031fe28c4
parent16dd56ba16394bc7acc2d24e2219066b9a0ad027 (diff)
downloadsnakemake-mode-74afb582c08d692555e42ce29a37f15305e66f25.tar.gz
snakemake-build-targets-at-point: Remove unnecessary variable
-rw-r--r--snakemake.el11
1 files changed, 6 insertions, 5 deletions
diff --git a/snakemake.el b/snakemake.el
index 09e1916..86cb88e 100644
--- a/snakemake.el
+++ b/snakemake.el
@@ -566,11 +566,12 @@ Snakemake-graph mode is a minor mode that provides a key,
$ snakemake [ARGS] -- <targets>"
(interactive (list (snakemake-arguments)))
- (let ((targets (or (snakemake-file-targets-at-point 'check)
- (snakemake-rule-at-point 'target)
- (user-error "No target found at point")))
- (default-directory (snakemake-snakefile-directory)))
- (snakemake-compile-targets targets args)))
+ (let ((default-directory (snakemake-snakefile-directory)))
+ (snakemake-compile-targets
+ (or (snakemake-file-targets-at-point 'check)
+ (snakemake-rule-at-point 'target)
+ (user-error "No target found at point"))
+ args)))
;;;###autoload
(defun snakemake-build-file-target (&optional args)