Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/feat-rewrite-api' into feat-rewr…
Browse files Browse the repository at this point in the history
…ite-api
  • Loading branch information
oskardotglobal committed Nov 4, 2024
2 parents 4b4e77a + 4eb4575 commit c83b754
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions winapps/src/config/operations.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ impl Config {
_ => "Could not find $XDG_CONFIG_HOME and no config path specified".into_result(),
}
.map(|path| path.join("winapps").join("config.toml"))?;

let parent = path.parent().unwrap();
path_ok(parent)?;

Expand All @@ -47,7 +47,7 @@ impl Config {
if !config_path.exists() {
return self.save(path);
}

let config_file = fs::read_to_string(config_path).into_result()?;
let config: Self = toml::from_str(config_file.as_str()).into_result()?;

Expand Down

0 comments on commit c83b754

Please sign in to comment.