Remove unreachable code

This commit is contained in:
harupy 2023-01-01 17:43:25 +09:00
parent 95f3fa5a21
commit 696fe66056

View file

@ -111,18 +111,11 @@ pub fn parse_strings(
deduped.push(take_current(&mut current));
}
Ok(if has_fstring {
Expr::new(
initial_start,
last_end,
ExprKind::JoinedStr { values: deduped },
)
} else {
deduped
.into_iter()
.exactly_one()
.expect("String must be concatenated to a single element.")
})
Ok(Expr::new(
initial_start,
last_end,
ExprKind::JoinedStr { values: deduped },
))
}
#[cfg(test)]