Skip to content

Commit

Permalink
addressing comments about comments and condition order
Browse files Browse the repository at this point in the history
  • Loading branch information
alexanmtz committed May 22, 2019
1 parent d3104dc commit 0ce6e99
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/status_im/extensions/capacities/components.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,11 @@
(reset! current (js/setTimeout #(on-input-change-text on-change value) delay)))

(defn- in-range
;; Determines whether a number is in a range
[n, start, end]
(cond
(nil? n) true
(and (nil? start) (nil? end)) true
(= n "") true
(and (nil? start) (nil? end)) true
(and (< n end) (> n start)) true
:else false))

Expand Down

0 comments on commit 0ce6e99

Please sign in to comment.