Use unwrap_or_default (#1928)
This commit is contained in:
parent
da4ceb4c7b
commit
b4d8e5b8c6
@ -17,7 +17,8 @@ pub(crate) fn load_dotenv(
|
|||||||
.as_ref()
|
.as_ref()
|
||||||
.or(settings.dotenv_path.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());
|
return Ok(BTreeMap::new());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user