history: remove spurious UTF-8 check regression

Closes #10102
This commit is contained in:
Johannes Altmanninger 2023-11-15 16:31:33 +01:00
parent 7f67588e63
commit f3ce78bc53

View File

@ -304,8 +304,6 @@ fn unescape_yaml_fish_2_0(s: &mut Vec<u8>) {
// character.
cursor = backslash + 1;
}
debug_assert!(std::str::from_utf8(s).is_ok());
}
/// Read one line, stripping off any newline, returning the number of bytes consumed.