@@ -18,7 +18,7 @@ import runBatchedCursor from './runBatchedCursor';
1818import getAll from './getAll' ;
1919
2020function allDocsKeys ( keys , docStore , onBatch ) {
21- // It's not guaranted to be returned in right order
21+ // It's not guaranted to be returned in right order
2222 var valuesBatch = new Array ( keys . length ) ;
2323 var count = 0 ;
2424 keys . forEach ( function ( key , index ) {
@@ -69,17 +69,17 @@ function idbAllDocs(opts, idb, callback) {
6969 var start = 'startkey' in opts ? opts . startkey : false ;
7070 var end = 'endkey' in opts ? opts . endkey : false ;
7171 var key = 'key' in opts ? opts . key : false ;
72- var keys = 'keys' in opts ? opts . keys : false ;
72+ var keys = 'keys' in opts ? opts . keys : false ;
7373 var skip = opts . skip || 0 ;
7474 var limit = typeof opts . limit === 'number' ? opts . limit : - 1 ;
7575 var inclusiveEnd = opts . inclusive_end !== false ;
7676
77- var keyRange ;
77+ var keyRange ;
7878 var keyRangeError ;
7979 if ( ! keys ) {
8080 keyRange = createKeyRange ( start , end , inclusiveEnd , key , opts . descending ) ;
8181 keyRangeError = keyRange && keyRange . error ;
82- if ( keyRangeError &&
82+ if ( keyRangeError &&
8383 ! ( keyRangeError . name === "DataError" && keyRangeError . code === 0 ) ) {
8484 // DataError with error code 0 indicates start is less than end, so
8585 // can just do an empty query. Else need to throw
@@ -114,7 +114,7 @@ function idbAllDocs(opts, idb, callback) {
114114
115115 /* istanbul ignore if */
116116 if ( opts . update_seq ) {
117- getMaxUpdateSeq ( seqStore , function ( e ) {
117+ getMaxUpdateSeq ( seqStore , function ( e ) {
118118 if ( e . target . result && e . target . result . length > 0 ) {
119119 updateSeq = e . target . result [ 0 ] ;
120120 }
@@ -127,7 +127,7 @@ function idbAllDocs(opts, idb, callback) {
127127 var maxKey = undefined ;
128128 if ( cursor && cursor . key ) {
129129 maxKey = cursor . key ;
130- }
130+ }
131131 return onSuccess ( {
132132 target : {
133133 result : [ maxKey ]
@@ -218,7 +218,7 @@ function idbAllDocs(opts, idb, callback) {
218218 offset : opts . skip ,
219219 rows : results
220220 } ;
221-
221+
222222 /* istanbul ignore if */
223223 if ( opts . update_seq && updateSeq !== undefined ) {
224224 returnVal . update_seq = updateSeq ;
0 commit comments