[Pkg-javascript-commits] [node-leveldown] 387/492: tidy

Andrew Kelley andrewrk-guest at moszumanska.debian.org
Sun Jul 6 17:14:22 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 66bffaacba382d2c0b6b07047004d52eaebab846
Author: Dominic Tarr <dominic.tarr at gmail.com>
Date:   Fri Aug 16 09:15:01 2013 +0100

    tidy
---
 src/iterator.cc | 12 +++++-------
 1 file changed, 5 insertions(+), 7 deletions(-)

diff --git a/src/iterator.cc b/src/iterator.cc
index c629594..196ca63 100644
--- a/src/iterator.cc
+++ b/src/iterator.cc
@@ -5,7 +5,6 @@
 
 #include <node.h>
 #include <node_buffer.h>
-#include <iostream>
 
 #include "database.h"
 #include "iterator.h"
@@ -108,10 +107,11 @@ bool Iterator::GetIterator () {
          
         }
 
-      } else {
-      if (dbIterator->Valid() &&
-         gt != NULL && gt->compare(dbIterator->key().ToString()) == 0)
-        dbIterator->Next();
+      }
+      else {
+        if (dbIterator->Valid() && gt != NULL
+          && gt->compare(dbIterator->key().ToString()) == 0)
+          dbIterator->Next();
       }
     }
     else if (reverse)
@@ -124,8 +124,6 @@ bool Iterator::GetIterator () {
   return false;
 }
 
-//seems these argument are no longer used
-//                           v                 v
 bool Iterator::IteratorNext (std::string& key, std::string& value) {
   //if it's not the first call, move to next item.
 

-- 
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