Skip to content

Commit ad2673e

Browse files
committed
Simplify scanner logic: always use scannerGetList
1 parent afa022f commit ad2673e

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

happybase/table.py

+2-5
Original file line numberDiff line numberDiff line change
@@ -383,11 +383,8 @@ def scan(self, row_start=None, row_stop=None, row_prefix=None,
383383
else:
384384
how_many = min(batch_size, limit - n_returned)
385385

386-
if how_many == 1:
387-
items = self.connection.client.scannerGet(scan_id)
388-
else:
389-
items = self.connection.client.scannerGetList(
390-
scan_id, how_many)
386+
items = self.connection.client.scannerGetList(
387+
scan_id, how_many)
391388

392389
if not items:
393390
break # scan has finished

0 commit comments

Comments
 (0)