We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6afedd1 commit 9054d3cCopy full SHA for 9054d3c
1 file changed
lib/hnapi.js
@@ -143,7 +143,10 @@ var api = {
143
var item = hn.child('item/' + id);
144
item.once('value', function(snap){
145
var val = snap.val();
146
- if (!val) resolve(); // Silently resolve with nothing if null
+ if (!val){ // Silently resolve with nothing if null
147
+ resolve();
148
+ return;
149
+ }
150
151
// Comments
152
var kidsPromises = Promise.resolve();
0 commit comments