Skip to content

Commit

Permalink
🎨 further simplify file content value access
Browse files Browse the repository at this point in the history
  • Loading branch information
ttytm committed Oct 21, 2024
1 parent 975c1f0 commit a0fe24c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/modules/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,9 @@ impl Config {
let mut config = Self::default();

let path = Self::get_path();
let file = fs::read_to_string(&path);
let file = if let Ok(f) = file { f } else { return config };
let Ok(file) = fs::read_to_string(&path) else {
return config;
};

match Options::default()
.with_default_extension(Extensions::IMPLICIT_SOME)
Expand Down

0 comments on commit a0fe24c

Please sign in to comment.