@@ -237,7 +237,7 @@ export class Storage {
237237 }
238238
239239 storeWalletAndUpdateCopayersLookup ( wallet , cb ) {
240- const copayerLookups = _ . map ( wallet . copayers , copayer => {
240+ const copayerLookups = wallet . copayers . map ( copayer => {
241241 try {
242242 $ . checkState (
243243 copayer . requestPubKeys ,
@@ -368,7 +368,7 @@ export class Storage {
368368 . toArray ( ( err , result ) => {
369369 if ( err ) return cb ( err ) ;
370370 if ( ! result ) return cb ( ) ;
371- const txs = _ . map ( result , tx => {
371+ const txs = result . map ( tx => {
372372 return TxProposal . fromObj ( tx ) ;
373373 } ) ;
374374 return cb ( null , txs ) ;
@@ -391,7 +391,7 @@ export class Storage {
391391 const multisigTxpsInfoByTransactionHash : any = _ . groupBy ( multisigTxpsInfo , 'transactionHash' ) ;
392392 const actionsById = { } ;
393393 const txs = _ . compact (
394- _ . map ( result , tx => {
394+ result . map ( tx => {
395395 if ( ! tx . multisigContractAddress ) {
396396 return undefined ;
397397 }
@@ -434,7 +434,7 @@ export class Storage {
434434 . toArray ( ( err , result ) => {
435435 if ( err ) return cb ( err ) ;
436436 if ( ! result ) return cb ( ) ;
437- const txs = _ . map ( result , tx => {
437+ const txs = result . map ( tx => {
438438 return TxProposal . fromObj ( tx ) ;
439439 } ) ;
440440 return this . _completeTxData ( walletId , txs , cb ) ;
@@ -473,7 +473,7 @@ export class Storage {
473473 . toArray ( ( err , result ) => {
474474 if ( err ) return cb ( err ) ;
475475 if ( ! result ) return cb ( ) ;
476- const txs = _ . map ( result , tx => {
476+ const txs = result . map ( tx => {
477477 return TxProposal . fromObj ( tx ) ;
478478 } ) ;
479479 return this . _completeTxData ( walletId , txs , cb ) ;
@@ -517,7 +517,7 @@ export class Storage {
517517 . toArray ( ( err , result ) => {
518518 if ( err ) return cb ( err ) ;
519519 if ( ! result ) return cb ( ) ;
520- const txs = _ . map ( result , tx => {
520+ const txs = result . map ( tx => {
521521 return TxProposal . fromObj ( tx ) ;
522522 } ) ;
523523 return this . _completeTxData ( walletId , txs , cb ) ;
@@ -554,7 +554,7 @@ export class Storage {
554554 . toArray ( ( err , result ) => {
555555 if ( err ) return cb ( err ) ;
556556 if ( ! result ) return cb ( ) ;
557- const notifications = _ . map ( result , notification => {
557+ const notifications = result . map ( notification => {
558558 return Notification . fromObj ( notification ) ;
559559 } ) ;
560560 return cb ( null , notifications ) ;
@@ -873,7 +873,7 @@ export class Storage {
873873 }
874874 if ( ! result ) return cb ( ) ;
875875
876- const preferences = _ . map ( [ ] . concat ( result ) , r => {
876+ const preferences = [ ] . concat ( result ) . map ( r => {
877877 return Preferences . fromObj ( r ) ;
878878 } ) ;
879879 if ( copayerId ) {
@@ -923,7 +923,7 @@ export class Storage {
923923 if ( err ) return cb ( err ) ;
924924 if ( ! result || _ . isEmpty ( result ) ) return cb ( null , [ ] ) ;
925925
926- const emails = _ . map ( result , x => {
926+ const emails = result . map ( x => {
927927 return Email . fromObj ( x ) ;
928928 } ) ;
929929
@@ -1322,7 +1322,7 @@ export class Storage {
13221322 . toArray ( ( err , result ) => {
13231323 if ( err ) return cb ( err ) ;
13241324 const notes = _ . compact (
1325- _ . map ( result , note => {
1325+ result . map ( note => {
13261326 return TxNote . fromObj ( note ) ;
13271327 } )
13281328 ) ;
@@ -1382,7 +1382,7 @@ export class Storage {
13821382
13831383 if ( ! result ) return cb ( ) ;
13841384
1385- const tokens = _ . map ( [ ] . concat ( result ) , r => {
1385+ const tokens = [ ] . concat ( result ) . map ( r => {
13861386 return PushNotificationSub . fromObj ( r ) ;
13871387 } ) ;
13881388 return cb ( null , tokens ) ;
@@ -1404,7 +1404,7 @@ export class Storage {
14041404
14051405 if ( ! result ) return cb ( ) ;
14061406
1407- const tokens = _ . map ( [ ] . concat ( result ) , r => {
1407+ const tokens = [ ] . concat ( result ) . map ( r => {
14081408 return PushNotificationSub . fromObj ( r ) ;
14091409 } ) ;
14101410 return cb ( null , tokens ) ;
0 commit comments