Skip to content

Commit 03fc146

Browse files
authored
Update index.js
1 parent f652c55 commit 03fc146

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

Diff for: index.js

+10-6
Original file line numberDiff line numberDiff line change
@@ -113,10 +113,12 @@ module.exports._getDependencies = function(config = {}) {
113113

114114
if (!result) {
115115
debug(`skipping an empty filepath resolution for partial: ${dependency}`);
116+
116117
config.nonExistent.push(dependency);
117-
if(config.includeNonExisting) {
118-
resolvedDependencies.push(":!EXISTS: " + dependency);
119-
}
118+
if (config.includeNonExisting) {
119+
resolvedDependencies.push(`:!EXISTS: ${dependency}`);
120+
}
121+
120122
continue;
121123
}
122124

@@ -125,9 +127,11 @@ module.exports._getDependencies = function(config = {}) {
125127
if (!exists) {
126128
config.nonExistent.push(dependency);
127129
debug(`skipping non-empty but non-existent resolution: ${result} for partial: ${dependency}`);
128-
if(config.includeNonExisting) {
129-
resolvedDependencies.push(":!EXISTS: " + dependency);
130-
}
130+
131+
if (config.includeNonExisting) {
132+
resolvedDependencies.push(`:!EXISTS: ${dependency}`);
133+
}
134+
131135
continue;
132136
}
133137

0 commit comments

Comments
 (0)