diff options
| author | Michael Williamson <mike@zwobble.org> | 2026-09-16 23:16:52 +0100 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2026-09-16 23:16:52 +0100 |
| commit | b703bcd2990768beb581be4da96b7ceaee21230b (patch) | |
| tree | db4914b0a93d18bb58cb64700765a59107747e8e /lib/images.js | |
| parent | 0217e4f114ed5c1064c0ffc65c4a1819e8cec71d (diff) | |
Remove promises.when()
Diffstat (limited to 'lib/images.js')
| -rw-r--r-- | lib/images.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/images.js b/lib/images.js index 7c49dbe..2ef609b 100644 --- a/lib/images.js +++ b/lib/images.js @@ -7,7 +7,7 @@ exports.imgElement = imgElement; function imgElement(func) { return function(element, messages) { - return promises.when(func(element)).then(function(result) { + return promises.resolve(func(element)).then(function(result) { var attributes = {}; if (element.altText) { attributes.alt = element.altText; |
