Skip to content

Commit

Permalink
Refactor to prefer when over single clause if
Browse files Browse the repository at this point in the history
  • Loading branch information
expez committed Aug 16, 2015
1 parent dedab05 commit bf72824
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cider-interaction.el
Original file line number Diff line number Diff line change
Expand Up @@ -2185,9 +2185,9 @@ stale code from any deleted files may not be completely unloaded."
"Load (eval) the Clojure file FILENAME in nREPL."
(interactive (list
(read-file-name "Load file: " nil nil nil
(if (buffer-file-name)
(file-name-nondirectory
(buffer-file-name))))))
(when (buffer-file-name)
(file-name-nondirectory
(buffer-file-name))))))
(-when-let (buf (find-buffer-visiting filename))
(with-current-buffer buf
(remove-overlays nil nil 'cider-type 'instrumented-defs)
Expand Down

0 comments on commit bf72824

Please sign in to comment.