diff options
author | Kyle Meyer <kyle@kyleam.com> | 2017-03-26 17:31:03 -0400 |
---|---|---|
committer | Kyle Meyer <kyle@kyleam.com> | 2017-03-26 21:21:31 -0400 |
commit | 74afb582c08d692555e42ce29a37f15305e66f25 (patch) | |
tree | ce726c377649934eb4afe93f65ffceb031fe28c4 | |
parent | 16dd56ba16394bc7acc2d24e2219066b9a0ad027 (diff) | |
download | snakemake-mode-74afb582c08d692555e42ce29a37f15305e66f25.tar.gz |
snakemake-build-targets-at-point: Remove unnecessary variable
-rw-r--r-- | snakemake.el | 11 |
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) |