We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1146910 commit 87fd887Copy full SHA for 87fd887
1 file changed
lib/main.js
@@ -218,14 +218,10 @@ function configDotenv (options) {
218
let optionPathsThatExist = []
219
if (options && options.path) {
220
if (!Array.isArray(options.path)) {
221
- if (fs.existsSync(options.path)) {
222
- optionPathsThatExist = [_resolveHome(options.path)]
223
- }
+ optionPathsThatExist = [_resolveHome(options.path)]
224
} else {
225
for (const filepath of options.path) {
226
- if (fs.existsSync(filepath)) {
227
- optionPathsThatExist.push(_resolveHome(filepath))
228
+ optionPathsThatExist.push(_resolveHome(filepath))
229
}
230
231
0 commit comments