Skip to content

Commit

Permalink
Return on err
Browse files Browse the repository at this point in the history
  • Loading branch information
rbeer committed Apr 12, 2016
1 parent c04ce95 commit 9bd0903
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion smoothshorts_be.js
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ SmoothShorts.getHashForPid = function(pid, cb) {
db.getSortedSetRangeByScore('posts:smoothshorts', 0, -1, pid, pid,
function(err, hash) {
if (err) {
cb(err);
return cb(err);
}
cb(null, {pid: pid, hash: hash[0]});
});
Expand Down

0 comments on commit 9bd0903

Please sign in to comment.