From 88e749e4ce9fc61e3db6ba13902d91b78be9ddf0 Mon Sep 17 00:00:00 2001 From: Johannes Altmanninger Date: Wed, 9 Oct 2024 21:35:41 +0200 Subject: [PATCH] fixup! Back out assertion that doesn't hold yet --- src/history/file.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/history/file.rs b/src/history/file.rs index 5b96d5348..4749e94c9 100644 --- a/src/history/file.rs +++ b/src/history/file.rs @@ -363,7 +363,7 @@ fn decode_item_fish_2_0(mut data: &[u8]) -> Option { let line = trim_start(line); // Check this early *before* anything else. if !line.starts_with(b"- cmd") { - return; + return None; } let (_key, value) = extract_prefix_and_unescape_yaml(line)?;