mirror of
https://github.com/richardharrington/robotwar.git
synced 2024-07-06 05:28:54 +00:00
refactored return-err function to use 'constantly'
This commit is contained in:
parent
31ff2272e2
commit
6b609f1f94
@ -56,9 +56,7 @@
|
||||
[s]
|
||||
(re-matches #"^[A-Z][A-Z\d]*" s))
|
||||
|
||||
(defn ignoring-args-thunk [x] (fn [& _] x))
|
||||
|
||||
(def return-err (ignoring-args-thunk "Invalid word or symbol"))
|
||||
(def return-err (constantly "Invalid word or symbol"))
|
||||
|
||||
(def parser-priority
|
||||
[[registers :register]
|
||||
|
Loading…
Reference in New Issue
Block a user