Skip to content

Commit

Permalink
fix: Resolves an issue with empty variables and safe-mode disabled.
Browse files Browse the repository at this point in the history
Thanks @k-funk for the find.

closes #14
  • Loading branch information
mrsteele committed Sep 2, 2016
1 parent 219b717 commit 67be0ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class Dotenv {

Object.keys(blueprint).map(key => {
const value = env[key] || env[key]
if (!value) {
if (!value && options.safe) {
throw new Error(`Missing environment variable: ${key}`)
} else {
vars[key] = value
Expand Down

0 comments on commit 67be0ee

Please sign in to comment.