collaspe if block
This commit is contained in:
parent
60f95a0358
commit
267c53f15d
2 changed files with 3 additions and 5 deletions
|
@ -59,11 +59,9 @@ pub fn normalize(input: &[u8]) -> Cow<'_, [u8]> {
|
|||
return Cow::Borrowed(&[]);
|
||||
}
|
||||
|
||||
if size >= 3 {
|
||||
if input[0] == b'=' && input[size - 1] == b'=' && input[size - 2] != b'\\' {
|
||||
if size >= 3 && input[0] == b'=' && input[size - 1] == b'=' && input[size - 2] != b'\\' {
|
||||
return normalize(&input[1..size]);
|
||||
}
|
||||
}
|
||||
|
||||
let mut owned = vec![];
|
||||
|
||||
|
|
Reference in a new issue