Skip to content

Commit ba727e8

Browse files
committed
remove my own mess
1 parent 2e7bbb1 commit ba727e8

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

crates/but-settings/src/persistence.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,13 @@ impl AppSettings {
1414
/// Finally, merge all customizations from `config_path` into the default settings.
1515
pub fn load(config_path: &Path) -> Result<Self> {
1616
// If the file on config_path does not exist, create it empty
17-
18-
dbg!(&config_path);
19-
2017
if !config_path.exists() {
2118
gitbutler_fs::create_dirs_then_write(config_path, "{}\n")?;
2219
}
2320

2421
// merge customizations from disk into the defaults to get a complete set of settings.
2522
let customizations = serde_json_lenient::from_str(&std::fs::read_to_string(config_path)?)?;
26-
dbg!(&customizations);
23+
2724
let mut settings: serde_json::Value = serde_json_lenient::from_str(DEFAULTS)?;
2825

2926
merge_non_null_json_value(customizations, &mut settings);

0 commit comments

Comments
 (0)