[Pkg-javascript-commits] [node-leveldown] 180/492: jshint "onevar":true

Andrew Kelley andrewrk-guest at moszumanska.debian.org
Sun Jul 6 17:13:57 UTC 2014


This is an automated email from the git hooks/post-receive script.

andrewrk-guest pushed a commit to annotated tag rocksdb-0.10.1
in repository node-leveldown.

commit daf922a0a8f7014ff4b972f33e5ef9666ff9b3b5
Author: Rod Vagg <rod at vagg.org>
Date:   Thu Jan 24 09:55:36 2013 +1100

    jshint "onevar":true
---
 .jshintrc      |  1 +
 lib/levelup.js | 10 +++++++---
 2 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/.jshintrc b/.jshintrc
index 2685324..ed407a7 100644
--- a/.jshintrc
+++ b/.jshintrc
@@ -27,4 +27,5 @@
   , "es5": true
   , "esnext": true
   , "strict": false
+  , "onevar": true
 }
\ No newline at end of file
diff --git a/lib/levelup.js b/lib/levelup.js
index 138247e..cd76f0a 100644
--- a/lib/levelup.js
+++ b/lib/levelup.js
@@ -368,14 +368,18 @@ LevelUP.prototype.toString = function () {
 }
 
 module.exports = function (location, options, callback) {
+  var message
+    , error
+    , levelup
+
   if (typeof options == 'function') {
     callback = options
     options = {}
   }
 
   if (typeof location != 'string') {
-    var message = 'Must provide a location for the database'
-    var error = new errors.InitializationError(message)
+    message = 'Must provide a location for the database'
+    error = new errors.InitializationError(message)
 
     if (callback) {
       return callback(error)
@@ -384,7 +388,7 @@ module.exports = function (location, options, callback) {
     throw error
   }
 
-  var levelup = new LevelUP(location, options)
+  levelup = new LevelUP(location, options)
   levelup.open(callback)
   return levelup
 }

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-leveldown.git



More information about the Pkg-javascript-commits mailing list