Skip to content

Commit

Permalink
Return on error
Browse files Browse the repository at this point in the history
  • Loading branch information
Munter committed Jun 28, 2012
1 parent e98e3c6 commit 6617459
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/index.js
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
histogram = function (imageBuffer, callback) { histogram = function (imageBuffer, callback) {
getCanvasImageData(imageBuffer, function (err, data) { getCanvasImageData(imageBuffer, function (err, data) {
if (err) { if (err) {
callback(err); return callback(err);
} }


var hist = { var hist = {
Expand Down

0 comments on commit 6617459

Please sign in to comment.