Skip to content

Commit dbc80d0

Browse files
committed
Revert "debug unhandled error"
This reverts commit a040ea7.
1 parent a040ea7 commit dbc80d0

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

Diff for: lib/plugins/validators/async/22_imageSize.js

+1-4
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { cache } from '../../../cache.js';
33
import mediaPlugin from '../media.js';
44
import * as urlLib from 'url';
55

6+
67
export default {
78

89
startIteration: function(iterationPluginContext) {
@@ -97,10 +98,6 @@ export default {
9798

9899
// Special case: add rel image for image file with specific size.
99100
if (link.rel.indexOf(CONFIG.R.image) === -1 && link.rel.indexOf(CONFIG.R.file) > -1 && data.width >= 100 && data.height >= 100) {
100-
if (typeof link.rel.push !== 'function') {
101-
throw new Error('link rel type error: "' + url + '" ' + JSON.stringify(link));
102-
}
103-
104101
link.rel.push(CONFIG.R.image);
105102
}
106103

0 commit comments

Comments
 (0)