From a027928f192a125188e43bf9c7b7b21b241c51b3 Mon Sep 17 00:00:00 2001 From: Juho Teperi Date: Fri, 6 Mar 2020 13:45:25 +0200 Subject: [PATCH] Linting fixes --- examples/geometry/src/geometry/components.cljs | 3 +-- examples/simple/src/simpleexample/core.cljs | 5 +++-- examples/todomvc/src/todomvc/core.cljs | 5 +++-- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/examples/geometry/src/geometry/components.cljs b/examples/geometry/src/geometry/components.cljs index 6871b50..01830f4 100644 --- a/examples/geometry/src/geometry/components.cljs +++ b/examples/geometry/src/geometry/components.cljs @@ -1,6 +1,5 @@ (ns geometry.components - (:require [reagent.core :as r] - [goog.events :as events] + (:require [goog.events :as events] [geometry.geometry :refer [x y dist] :as g]) (:import [goog.events EventType])) diff --git a/examples/simple/src/simpleexample/core.cljs b/examples/simple/src/simpleexample/core.cljs index 24d5f34..e3ce766 100644 --- a/examples/simple/src/simpleexample/core.cljs +++ b/examples/simple/src/simpleexample/core.cljs @@ -1,6 +1,7 @@ (ns simpleexample.core (:require [reagent.core :as r] - [reagent.dom :as rdom])) + [reagent.dom :as rdom] + [clojure.string :as str])) (defonce timer (r/atom (js/Date.))) @@ -13,7 +14,7 @@ [:h1 message]) (defn clock [] - (let [time-str (-> @timer .toTimeString (clojure.string/split " ") first)] + (let [time-str (-> @timer .toTimeString (str/split " ") first)] [:div.example-clock {:style {:color @time-color}} time-str])) diff --git a/examples/todomvc/src/todomvc/core.cljs b/examples/todomvc/src/todomvc/core.cljs index 87de365..a43be96 100644 --- a/examples/todomvc/src/todomvc/core.cljs +++ b/examples/todomvc/src/todomvc/core.cljs @@ -1,6 +1,7 @@ (ns todomvc.core (:require [reagent.core :as r] - [reagent.dom :as rdom])) + [reagent.dom :as rdom] + [clojure.string :as str])) (defonce todos (r/atom (sorted-map))) @@ -29,7 +30,7 @@ (let [val (r/atom title) stop #(do (reset! val "") (if on-stop (on-stop))) - save #(let [v (-> @val str clojure.string/trim)] + save #(let [v (-> @val str str/trim)] (if-not (empty? v) (on-save v)) (stop))] (fn [{:keys [id class placeholder]}]