refactor: use set from lodash/fp instead of syntax
This commit is contained in:
parent
2c8ab635a7
commit
9a8bbbd87f
1 changed files with 1 additions and 1 deletions
|
|
@ -137,7 +137,7 @@ function update () {
|
||||||
const promiseNewEtags = Promise.resolve(ofacSources || [])
|
const promiseNewEtags = Promise.resolve(ofacSources || [])
|
||||||
.then(sources => Promise.all(_.map(promiseGetEtag, sources))
|
.then(sources => Promise.all(_.map(promiseGetEtag, sources))
|
||||||
.then(etags => _.map(
|
.then(etags => _.map(
|
||||||
([source, etag]) => ({...source, etag}),
|
([source, etag]) => _.set('etag', etag, source),
|
||||||
_.zip(sources, etags)
|
_.zip(sources, etags)
|
||||||
))
|
))
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue