remove superfluous variable

This commit is contained in:
ConnorSkees 2020-03-31 11:27:15 -04:00
parent 08f7dba00d
commit 84b6ca9180

View File

@ -61,10 +61,9 @@ impl If {
let cond = read_until_open_curly_brace(toks);
toks.next();
devour_whitespace(toks);
let toks_ = read_until_closing_curly_brace(toks);
branches.push(Branch::new(cond, read_until_closing_curly_brace(toks)));
toks.next();
devour_whitespace(toks);
branches.push(Branch::new(cond, toks_))
}
'{' => {
else_ = read_until_closing_curly_brace(toks);