Remove unnecessary use of read-string
in Middle Character
For some reason `read-string` was being called to parse a string to a string in Middle Character, along with a totally unnecessary try/catch block. This cleans that up. It looks like most if not all of the PSB2 problems have this issue and we'll need to go through and update all of those to not use `read-string`.
This commit is contained in:
parent
6b454451d7
commit
cb33af755a
@ -48,9 +48,9 @@
|
||||
:string))
|
||||
inputs)
|
||||
parsed-outputs (map (fn [output]
|
||||
(try (read-string output)
|
||||
#?(:clj (catch Exception e 1000.0)
|
||||
:cljs (catch js/Error. e 1000.0))))
|
||||
(if (= output :no-stack-item)
|
||||
1000.0
|
||||
output))
|
||||
outputs)
|
||||
errors (map (fn [correct-output output]
|
||||
(if (= output :no-stack-item)
|
||||
|
Loading…
x
Reference in New Issue
Block a user