Remove useless asserts

This commit is contained in:
ConnorSkees 2020-01-11 18:41:59 -05:00
parent d3620be4d8
commit d930659ffe

View File

@ -70,7 +70,6 @@ impl Css {
fn parse_stmt(&mut self, stmt: Stmt) {
match stmt {
Stmt::Style(s) => {
assert!(self.idx >= 1);
if self.at_root {
self.blocks[self.idx - 1].push_style(s)
} else {
@ -78,7 +77,6 @@ impl Css {
}
},
Stmt::MultilineComment(s) => {
assert!(self.idx >= 1);
if self.idx == 0 {
self.blocks.push(Toplevel::MultilineComment(s));
} else {