Skip to content

Commit 8c3f1fa

Browse files
Mark Lagendijks0ph1e
authored andcommitted
Fixed promise bug.
Promises should only be rejected with an Error. In this case there is no Error, but just no result. Bluebird gives warnings when Promises are rejected without an Error.
1 parent 569687c commit 8c3f1fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/file-handlers/html.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ function loadResourcesForRule (context, resource, rule) {
139139
el.attr(rule.attr, updatedAttr);
140140
});
141141
}
142-
return Promise.reject();
142+
return Promise.resolve();
143143
}).get();
144144

145145
return utils.waitAllFulfilled(promises).then(function updateHtmlText () {

0 commit comments

Comments
 (0)