Skip to content

Commit

Permalink
Use unwrap_or_default (#1928)
Browse files Browse the repository at this point in the history
  • Loading branch information
casey committed Feb 28, 2024
1 parent da4ceb4 commit b4d8e5b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/load_dotenv.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ pub(crate) fn load_dotenv(
.as_ref()
.or(settings.dotenv_path.as_ref());

if !settings.dotenv_load.unwrap_or(false) && dotenv_filename.is_none() && dotenv_path.is_none() {
if !settings.dotenv_load.unwrap_or_default() && dotenv_filename.is_none() && dotenv_path.is_none()
{
return Ok(BTreeMap::new());
}

Expand Down

0 comments on commit b4d8e5b

Please sign in to comment.