diff --git a/src/usecase/fzf_make/app.rs b/src/usecase/fzf_make/app.rs index fc9cd07d..dc430a88 100644 --- a/src/usecase/fzf_make/app.rs +++ b/src/usecase/fzf_make/app.rs @@ -86,10 +86,8 @@ impl Model<'_> { Err(_) => return Histories::new(makefile_path, vec![]), // NOTE: Show error message on message pane https://github.com/kyu08/fzf-make/issues/152 Ok(c) => c, }; - let histories = match toml::parse_history(content.to_string()) { - Err(_) => vec![], // NOTE: Show error message on message pane https://github.com/kyu08/fzf-make/issues/152 - Ok(h) => h, - }; + // TODO: Show error message on message pane if parsing history file failed. https://github.com/kyu08/fzf-make/issues/152 + let histories = toml::parse_history(content.to_string()).unwrap_or_default(); Histories::new(makefile_path, histories) })