Skip to content

Commit 334b32c

Browse files
committed
fixed indentation and collapsed empty function and simply call the callback directly
1 parent 50206ef commit 334b32c

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

dist/rss-parser.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,9 +123,7 @@ Parser.parseURL = function(url, callback) {
123123
res.on('end', function() {
124124
return Parser.parseString(xml, callback);
125125
})
126-
res.on('error', function(){
127-
callback;
128-
})
126+
res.on('error', callback);
129127
})
130128
req.on('error', callback);
131129
}

0 commit comments

Comments
 (0)