Skip to content

Commit addfb7f

Browse files
author
Christopher
committed
fixing indentation
1 parent 32ada03 commit addfb7f

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

src/xkcd_936/core.clj

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,8 @@
2626
:default 7
2727
:parse-fn #(Integer/parseInt %)
2828
:validate [#(< 0 % 0x10000) "Must be a number between 0 and 65536"]]
29-
["-h" "--help"]
30-
])
31-
29+
["-h" "--help"]])
30+
3231
(def fileName "words.txt")
3332

3433
(def url "https://raw.githubusercontent.com/jchristopherinc/xkcd-936/master/words.txt")
@@ -49,16 +48,15 @@
4948
(let [randomWord (string/join \space (take 1 (secureShuffle words)))]
5049
(cond
5150
(and (>= (count randomWord) (:lte options)) (<= (count randomWord) (:gte options))) randomWord
52-
:else (randomWordFromOptions words options)
53-
)))
51+
:else (randomWordFromOptions words options))))
5452

5553
(defn password [words options]
5654
(let [al (ArrayList.)]
5755
(loop [i 0]
5856
(when (< i (:count options))
5957
(.add al (randomWordFromOptions words options))
6058
(recur (inc i))))
61-
(string/join (:delimiter options) al)))
59+
(string/join (:delimiter options) al)))
6260

6361
(defn exit [status message]
6462
(println message)

0 commit comments

Comments
 (0)