Skip to content

Commit

Permalink
Fixed NPE-like.
Browse files Browse the repository at this point in the history
  • Loading branch information
mauricioszabo committed Dec 27, 2018
1 parent da627a9 commit f6ee3d3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
* Auto-import
* Clean unused imports

## 0.0.6
* Fix https://github.com/mauricioszabo/atom-chlorine/issues/22

## 0.0.5
* Goto definition for Clojure files outside JAR
* Fix wrong file and line number when evaluating
Expand Down
2 changes: 1 addition & 1 deletion src/chlorine/repl.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@
(or
(-> @state :config :eval-mode (= :cljs))
(and (-> @state :config :eval-mode (= :discover))
(str/ends-with? (.getFileName editor) ".cljs"))))
(str/ends-with? (str (.getFileName editor)) ".cljs"))))

(defn- eval-cljs [editor ns-name filename row col code ^js result callback]
(if-let [repl (-> @state :repls :cljs-eval)]
Expand Down

0 comments on commit f6ee3d3

Please sign in to comment.