Back out assertion that doesn't hold yet

This commit is contained in:
Johannes Altmanninger 2024-10-09 21:33:50 +02:00
parent 5db0bd5874
commit c5db7565cc

View File

@ -362,7 +362,9 @@ fn decode_item_fish_2_0(mut data: &[u8]) -> Option<HistoryItem> {
let (advance, line) = read_line(data);
let line = trim_start(line);
// Check this early *before* anything else.
assert!(line.starts_with(b"- cmd"));
if !line.starts_with(b"- cmd") {
return;
}
let (_key, value) = extract_prefix_and_unescape_yaml(line)?;