Skip to content

Commit da37b7a

Browse files
committed
Fix trailing whitespace
1 parent 645013b commit da37b7a

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

cljfmt/src/cljfmt/core.cljc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
#?(:clj (fn [^String a ^String b] (.contains a b))
1616
:cljs str/includes?))
1717

18-
#?(:clj
18+
#?(:clj
1919
(defn- find-all [zloc p?]
2020
(loop [matches []
2121
zloc zloc]
@@ -90,7 +90,7 @@
9090
(z/skip z/next* space? zloc))
9191

9292
(defn- skip-whitespace-and-commas [zloc]
93-
(z/skip z/next* #(or (space? %) (comma? %)) zloc))
93+
(z/skip z/next* #(or (space? %) (comma? %)) zloc))
9494

9595
(defn- skip-clojure-whitespace
9696
([zloc] (skip-clojure-whitespace zloc z/next*))
@@ -101,7 +101,7 @@
101101
(if (z/linebreak? zloc')
102102
(recur (-> zloc' z/right* skip-whitespace-and-commas)
103103
(-> zloc' z/string count (+ newlines)))
104-
(if (comment? (skip-clojure-whitespace zloc z/left*))
104+
(if (comment? (skip-clojure-whitespace zloc z/left*))
105105
(inc newlines)
106106
newlines))))
107107

@@ -344,7 +344,7 @@
344344
([form indents alias-map]
345345
(let [ns-name (find-namespace (z/edn form))
346346
sorted-indents (sort-by indent-order indents)]
347-
(transform form edit-all should-indent?
347+
(transform form edit-all should-indent?
348348
#(indent-line % sorted-indents {:alias-map alias-map
349349
:ns-name ns-name})))))
350350

cljfmt/test/cljfmt/core_test.cljc

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -846,8 +846,7 @@
846846
""
847847
""
848848
""
849-
"(baz)"
850-
]
849+
"(baz)"]
851850
["(foo)"
852851
""
853852
";bar"
@@ -1148,8 +1147,8 @@
11481147
(is (= "#\"a\nb\""
11491148
(reformat-string "#\"a\nb\""))
11501149
"regular expression with embedded newline")
1151-
(is (reformats-to?
1152-
["##Inf ##-Inf ##NaN"]
1150+
(is (reformats-to?
1151+
["##Inf ##-Inf ##NaN"]
11531152
["##Inf ##-Inf ##NaN"]))
11541153
(is (reformats-to?
11551154
[":&::before"]

0 commit comments

Comments
 (0)