Skip to content

Commit 36844fe

Browse files
committed
linter
1 parent 0da51fe commit 36844fe

File tree

3 files changed

+14
-14
lines changed

3 files changed

+14
-14
lines changed

src/state_flow/state.clj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
[cats.monad.exception :as e]
55
[cats.monad.state :as state]
66
[cats.protocols :as p]
7-
[state-flow.protocols :as sp]
8-
[cats.util :as util]))
7+
[cats.util :as util]
8+
[state-flow.protocols :as sp]))
99

1010
(declare short-circuiting-context)
1111

test/state_flow/assertions/matcher_combinators_test.clj

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
[state-flow.assertions.matcher-combinators :as mc]
77
[state-flow.core :as state-flow :refer [flow]]
88
[state-flow.state :as state]
9-
[state-flow.test-helpers :as test-helpers :refer [this-line-number shhh!]]))
9+
[state-flow.test-helpers :as test-helpers :refer [shhh! this-line-number]]))
1010

1111
(def get-value-state (state/gets (comp deref :value)))
1212

@@ -39,9 +39,9 @@
3939
(let [[flow-ret flow-state]
4040
(state/run
4141
(flow "flow"
42-
(test-helpers/swap-later 100 :value + 2)
43-
(mc/match? 2 (state/gets (comp deref :value)) {:times-to-try 3
44-
:sleep-time 110}))
42+
(test-helpers/swap-later 100 :value + 2)
43+
(mc/match? 2 (state/gets (comp deref :value)) {:times-to-try 3
44+
:sleep-time 110}))
4545
{:value (atom 0)})]
4646
(testing "returns match result with probe info"
4747
(is (match? {:probe/sleep-time 110
@@ -89,11 +89,11 @@
8989
(let [[flow-ret flow-state]
9090
(state-flow/run
9191
(flow "flow"
92-
(test-helpers/swap-later 200 :count + 2)
93-
(testing "2" (mc/match? 2
94-
(state/gets (comp deref :count))
95-
{:times-to-try 2
96-
:sleep-time 75})))
92+
(test-helpers/swap-later 200 :count + 2)
93+
(testing "2" (mc/match? 2
94+
(state/gets (comp deref :count))
95+
{:times-to-try 2
96+
:sleep-time 75})))
9797
{:count (atom 0)})]
9898
(testing "returns match result"
9999
(is (match? {:match/result :mismatch} flow-ret)))
@@ -126,8 +126,8 @@
126126
:fail-fast? true
127127
:on-error state-flow/ignore-error}
128128
(flow "stop before boom"
129-
(mc/match? 1 2)
130-
(flow "will explode" bogus))))]
129+
(mc/match? 1 2)
130+
(flow "will explode" bogus))))]
131131
(testing "state is left as is"
132132
(is (match? {:value 0} (second result))))
133133
(testing "the return value is the same as a failing match?"

test/state_flow/state_test.clj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
(deftest get-and-put
6363
(let [increment-state (m/mlet [x (state/get)
6464
_ (state/put (inc x))]
65-
(m/return x))]
65+
(m/return x))]
6666
(testing "modify state with get and put"
6767
(is (= [2 3]
6868
(state/run increment-state 2))))))

0 commit comments

Comments
 (0)