bkeepers / dotenv

A Ruby gem to load environment variables from `.env`.
MIT License
6.61k stars 505 forks source link

Guard against restore being called with no previously saved state #503

Closed bkeepers closed 6 months ago

bkeepers commented 6 months ago

This adds a guard against calling Dotenv.restore without having previously called Dotenv.save.

This should fix #500, but I can't reproduce that exact scenario.