Skip to content

Commit

Permalink
config requested change
Browse files Browse the repository at this point in the history
Signed-off-by: Bailey Kasin <[email protected]>
  • Loading branch information
Bailey Kasin committed Oct 18, 2023
1 parent f869bed commit 7a6200f
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ use librespot_playback::config::{
use log::{error, info, warn};
use serde::{de::Error, de::Unexpected, Deserialize, Deserializer};
use sha1::{Digest, Sha1};
use std::{fmt, fs, path::PathBuf, str::FromStr, string::ToString};
use std::{fmt, fs, path::Path, path::PathBuf, str::FromStr, string::ToString};
use structopt::{clap::AppSettings, StructOpt};
use url::Url;

Expand Down Expand Up @@ -662,14 +662,11 @@ pub(crate) fn get_config_file() -> Option<PathBuf> {

if path.exists() {
Some(path)
} else {
} else if Path::new(&etc_conf).exists() {
let path: PathBuf = etc_conf.into();

if path.exists() {
Some(path)
} else {
None
}
Some(path)
} else {
None
}
}

Expand Down

0 comments on commit 7a6200f

Please sign in to comment.