summaryrefslogtreecommitdiff
path: root/cider-mode.el
diff options
context:
space:
mode:
authorArtur Malabarba <bruce.connor.am@gmail.com>2015-11-06 13:41:31 +0000
committerArtur Malabarba <bruce.connor.am@gmail.com>2015-11-06 14:13:31 +0000
commitfe4ec93ba69f15b50b676f6f940ac8d9d0803533 (patch)
tree25f05d8a52f4602ede0dc1919a7eaf49efd83c17 /cider-mode.el
parent2ff5097df224afd906b8c1b9f1e7e3b1509652e0 (diff)
Work on the assumption that cider-repl-type is never nil
This is partially to simplify code, and partially to make it easier for us to catch bugs early. Since the default value of cider-repl-type is "clj", the current behaviour shouldn't change for users. But we can do (setq-default cider-repl-type nil) as a way to ensure that any flaws in the state tracker will fail early.
Diffstat (limited to 'cider-mode.el')
-rw-r--r--cider-mode.el3
1 files changed, 1 insertions, 2 deletions
diff --git a/cider-mode.el b/cider-mode.el
index e5200dde..d9cf82b4 100644
--- a/cider-mode.el
+++ b/cider-mode.el
@@ -50,8 +50,7 @@ Info contains project name and host:port endpoint."
(if-let ((current-connection (ignore-errors (cider-current-connection))))
(with-current-buffer current-connection
(concat
- (when cider-repl-type
- (concat cider-repl-type ":"))
+ (concat cider-repl-type ":")
(when cider-mode-line-show-connection
(format "%s@%s:%s"
(or (cider--project-name nrepl-project-dir) "<no project>")