Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: correct check for required attribute
### Description Currently, in the current code, the `required` attribute does not work as expected. On the code path where it should "continue if not required" actually just fallback into the error printing and process exiting. Small reproducible example: ```rust #[dotenvy::load(required = false)] #[tokio::main] async fn main() { let _ = env::var("SOME_VAR").unwrap(); } ``` Which errors out with: ``` Failed to load env file from path './.env': error reading './.env':, No such file or directory (os error 2) ```
- Loading branch information