src/yetibot/commands/pirate.clj
Non-idiomatic code found in (apply str accum)
Open
Open
(apply str accum)
- Read upRead up
- Exclude checks
Consider using:
(clojure.string/join accum)
instead of:
(apply str accum)
Non-idiomatic code found in (-> (time/to-time-zone (time/now) (time/time-zone-for-id local-tz)) time/hour)
Open
Open
(let [hour (-> (time/to-time-zone (time/now) (time/time-zone-for-id local-tz))
- Read upRead up
- Exclude checks
Consider using:
(time/hour
(time/to-time-zone (time/now) (time/time-zone-for-id local-tz)))
instead of:
(-> (time/to-time-zone (time/now) (time/time-zone-for-id local-tz))
time/hour)
Non-idiomatic code found in (apply str (repeat (rand-nth [2 3]) c))
Open
Open
(apply str (repeat (rand-nth [2 3]) c)))))
- Read upRead up
- Exclude checks
Consider using:
(clojure.string/join (repeat (rand-nth [2 3]) c))
instead of:
(apply str (repeat (rand-nth [2 3]) c))
Non-idiomatic code found in (if (re-find slur-re s) s nil)
Open
Open
(if (re-find slur-re s) s nil))
- Read upRead up
- Exclude checks
Consider using:
(when (re-find slur-re s) s)
instead of:
(if (re-find slur-re s) s nil)