return empty on valid subreddit async
This commit is contained in:
2
bot.js
2
bot.js
@@ -157,6 +157,8 @@ function handleRedditJson(data) {
|
|||||||
return json.data.children[rand].data.url;
|
return json.data.children[rand].data.url;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// What if we don't find anything i.e. r/dogs but its valid subreddit.
|
||||||
|
return "";
|
||||||
}
|
}
|
||||||
|
|
||||||
// Makes an async url request with the provided function: 'process'.
|
// Makes an async url request with the provided function: 'process'.
|
||||||
|
Reference in New Issue
Block a user