Skip to content

Commit 87fd887

Browse files
committed
do not check if exists
1 parent 1146910 commit 87fd887

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

lib/main.js

+2-6
Original file line numberDiff line numberDiff line change
@@ -218,14 +218,10 @@ function configDotenv (options) {
218218
let optionPathsThatExist = []
219219
if (options && options.path) {
220220
if (!Array.isArray(options.path)) {
221-
if (fs.existsSync(options.path)) {
222-
optionPathsThatExist = [_resolveHome(options.path)]
223-
}
221+
optionPathsThatExist = [_resolveHome(options.path)]
224222
} else {
225223
for (const filepath of options.path) {
226-
if (fs.existsSync(filepath)) {
227-
optionPathsThatExist.push(_resolveHome(filepath))
228-
}
224+
optionPathsThatExist.push(_resolveHome(filepath))
229225
}
230226
}
231227

0 commit comments

Comments
 (0)