fix(css/parser): Remove a wrong assertion (#4641)

This commit is contained in:
Donny/강동윤 2022-05-12 19:48:51 +09:00 committed by GitHub
parent 073ca87012
commit 84e4ca6c27
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -22,9 +22,6 @@ impl Error {
}
pub fn new(span: Span, kind: ErrorKind) -> Self {
if cfg!(debug_assertions) && span.is_dummy() {
panic!("parser should not create an error with dummy span")
}
Error {
inner: Box::new((span, kind)),
}