Skip to content
This repository was archived by the owner on Jun 15, 2024. It is now read-only.

Commit 6aa436e

Browse files
committed
remove unused import, fix some formatting
1 parent 2b5f668 commit 6aa436e

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

src/clj/lambdacd/presentation/pipeline_state.clj

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
(ns lambdacd.presentation.pipeline-state
2-
(:require [lambdacd.util :as util]
3-
[lambdacd.internal.pipeline-state :as pipeline-state]
2+
(:require [lambdacd.internal.pipeline-state :as pipeline-state]
43
[clj-time.core :as t]
54
[clojure.tools.logging :as log]
65
[clj-timeframes.core :as tf]
@@ -45,8 +44,8 @@
4544

4645
(defn earliest-first-update [step-ids-and-results]
4746
(->> (vals step-ids-and-results)
48-
(filter not-retriggered?)
49-
(first-with-key-ordered-by asc :first-updated-at)))
47+
(filter not-retriggered?)
48+
(first-with-key-ordered-by asc :first-updated-at)))
5049

5150
(defn latest-most-recent-update [step-ids-and-results]
5251
(first-with-key-ordered-by desc :most-recent-update-at (vals step-ids-and-results)))
@@ -91,9 +90,9 @@
9190

9291

9392
(defn most-recent-step-result-with [key ctx]
94-
(let [state (pipeline-state/get-all (:pipeline-state-component ctx))
95-
step-id (:step-id ctx)
96-
step-results (map second (reverse (sort-by first (seq state))))
97-
step-results-for-id (map #(get % step-id) step-results)
93+
(let [state (pipeline-state/get-all (:pipeline-state-component ctx))
94+
step-id (:step-id ctx)
95+
step-results (map second (reverse (sort-by first (seq state))))
96+
step-results-for-id (map #(get % step-id) step-results)
9897
step-results-with-key (filter key step-results-for-id)]
9998
(first step-results-with-key)))

0 commit comments

Comments
 (0)