Skip to content

Commit 87188fb

Browse files
committed
Update configuration file handling
1 parent 0f873b1 commit 87188fb

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

src/settings.rs

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -197,19 +197,10 @@ pub fn get_local_config_path() -> Option<PathBuf> {
197197
if !config_dir.is_dir() {
198198
fs::create_dir_all(&config_dir).ok()?;
199199
}
200-
<<<<<<< HEAD
201-
let config_path = config_dir
202-
.parent()
203-
.unwrap_or_else(|| &config_dir)
204-
.join("gptcommit.toml");
205-
||||||| parent of 6b04239 (Simplify path)
206-
let config_path = config_dir.join("../gptcommit.toml");
207-
=======
208200
let config_path = config_dir
209201
.parent()
210202
.unwrap_or(&config_dir)
211203
.join("gptcommit.toml");
212-
>>>>>>> 6b04239 (Simplify path)
213204
if !config_path.exists() {
214205
fs::write(&config_path, "").ok()?;
215206
}

0 commit comments

Comments
 (0)