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:
Nic McPhee 2022-02-25 16:29:02 -06:00
parent 6b454451d7
commit cb33af755a

View File

@ -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)