Cleanup rust parser

This commit is contained in:
tarsin committed 2023-06-14 11:36:36 +08:00
1 parent 804dffc81a
commit 92b6069654
2 files changed
+13 -13

No files matched your search

@@ -10,7 +10,6 @@ object HomeParser {
fun parse(body: String): Limits {
val value = parseLimit(body)
check(value.size == 3)
if (value[0] == -1) throw ParseException("Parse image limits error", body)
return Limits(value[0], value[1], value[2])
}