Skip to content

Commit d50e8e5

Browse files
committed
CMR-11452 - Update header retrieval to use parseBoolean instead of using string comparison
1 parent 766188a commit d50e8e5

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

bootstrap-app/src/cmr/bootstrap/api/bulk_index.clj

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
"Defines the bulk index functions for the bootstrap API."
33
(:require
44
[clj-time.core :as time]
5-
[clojure.string :as string]
65
[cmr.bootstrap.config :as bootstrap-config]
76
[cmr.bootstrap.api.messages :as msg]
87
[cmr.bootstrap.api.util :as api-util]
@@ -83,9 +82,8 @@
8382

8483
(defn- ignore-after-date-time-limit?
8584
[headers]
86-
(= "true"
87-
(some-> (get headers ignore-after-date-time-limit-header)
88-
string/lower-case)))
85+
(Boolean/parseBoolean
86+
(get headers ignore-after-date-time-limit-header)))
8987

9088
(defn index-provider
9189
"Index all the collections and granules for a given provider."

0 commit comments

Comments
 (0)