minor clean up

This commit is contained in:
scbj committed 2025-02-03 09:57:09 +01:00
1 parent 1c30fd87a5
commit c846a16c8f
2 files changed
+1 -3

No files matched your search

+1 -2
View File
@@ -143,14 +143,13 @@ impl Config {
}
// parse configuration file and populate config struct
// if the file is not found, navigate uses the defaults
if config_file.is_file() {
let config_str = match fs::read_to_string(&config_file) {
Ok(value) => value,
Err(error) => return Err(error),
};
_ = config.parse_from_string(&config_str);
} else {
// TODO: write default configuration
}
if styles_as_ansi_sequences {