@@ -95,7 +95,7 @@ function createAbstractMapReduce(localDocName, mapper, reducer, ddocValidator) {
9595 try {
9696 fun ( doc ) ;
9797 } catch ( e ) {
98- emitError ( db , e , { fun : fun , doc : doc } ) ;
98+ emitError ( db , e , { fun, doc} ) ;
9999 }
100100 }
101101
@@ -107,7 +107,7 @@ function createAbstractMapReduce(localDocName, mapper, reducer, ddocValidator) {
107107 try {
108108 return { output : fun ( keys , values , rereduce ) } ;
109109 } catch ( e ) {
110- emitError ( db , e , { fun : fun , keys : keys , values : values , rereduce : rereduce } ) ;
110+ emitError ( db , e , { fun, keys, values, rereduce} ) ;
111111 return { error : e } ;
112112 }
113113 }
@@ -285,7 +285,7 @@ function createAbstractMapReduce(localDocName, mapper, reducer, ddocValidator) {
285285
286286 const response = await db . fetch ( '_design/' + parts [ 0 ] + '/_view/' + parts [ 1 ] + params , {
287287 headers : new Headers ( { 'Content-Type' : 'application/json' } ) ,
288- method : method ,
288+ method,
289289 body : JSON . stringify ( body )
290290 } ) ;
291291 ok = response . ok ;
@@ -555,7 +555,7 @@ function createAbstractMapReduce(localDocName, mapper, reducer, ddocValidator) {
555555 let indexed_docs = 0 ;
556556 const progress = {
557557 view : view . name ,
558- indexed_docs : indexed_docs
558+ indexed_docs
559559 } ;
560560 view . sourceDB . emit ( 'indexing' , progress ) ;
561561
@@ -651,7 +651,7 @@ function createAbstractMapReduce(localDocName, mapper, reducer, ddocValidator) {
651651 view : view . name ,
652652 last_seq : response . last_seq ,
653653 results_count : results . length ,
654- indexed_docs : indexed_docs
654+ indexed_docs
655655 } ;
656656 view . sourceDB . emit ( 'indexing' , progress ) ;
657657 view . sourceDB . activeTasks . update ( taskId , { completed_items : indexed_docs } ) ;
@@ -741,7 +741,7 @@ function createAbstractMapReduce(localDocName, mapper, reducer, ddocValidator) {
741741 groups . push ( {
742742 keys : [ [ e . key , e . id ] ] ,
743743 values : [ e . value ] ,
744- groupKey : groupKey
744+ groupKey
745745 } ) ;
746746 } ) ;
747747 results = [ ] ;
@@ -816,7 +816,7 @@ function createAbstractMapReduce(localDocName, mapper, reducer, ddocValidator) {
816816 finalResults = {
817817 total_rows : totalRows ,
818818 offset : skip ,
819- rows : rows
819+ rows
820820 } ;
821821 } else {
822822 // support limit, skip for keys query
0 commit comments