Permalink
Browse files

Return on error

  • Loading branch information...
1 parent e98e3c6 commit 6617459665d03cd2826b8e8171c98db8c2e5ac74 @Munter committed Jun 28, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/index.js
View
2 lib/index.js
@@ -15,7 +15,7 @@
histogram = function (imageBuffer, callback) {
getCanvasImageData(imageBuffer, function (err, data) {
if (err) {
- callback(err);
+ return callback(err);
}
var hist = {

0 comments on commit 6617459

Please sign in to comment.