Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
junkurihara committed Jul 6, 2023
1 parent 5d4c0f9 commit ee65688
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/config/config_toml.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,7 @@ pub struct Authentication {

impl ConfigToml {
pub fn new(config_file: &str) -> Result<Self> {
let config_str = if let Ok(s) = fs::read_to_string(config_file) {
s
} else {
let Ok(config_str) = fs::read_to_string(config_file) else {
bail!("Failed to read config file");
};
let parsed: Result<ConfigToml> =
Expand Down

0 comments on commit ee65688

Please sign in to comment.