diff --git a/index.js b/index.js index 1f50178..0958d8f 100644 --- a/index.js +++ b/index.js @@ -26,7 +26,9 @@ function evaluateScript(redis, script_name, keys, args, callback) { } readScript(script_name, function (err, script) { - if (err) return err; + if (err) { + return callback(err) + } var sha = shaify(script); checkLoaded(redis, script_name, sha, function (err, exists) { @@ -99,4 +101,4 @@ function loadScript(redis, script_name, script, callback) { shas[script_name] = sha1 && sha1.length && sha1[0]; callback(null, sha1); }); -} \ No newline at end of file +}