Bump dev, arrow functions (#2077)

This commit is contained in:
Jaco Greeff
2020-03-22 07:31:55 +01:00
committed by GitHub
parent 0c0e4c4d7c
commit b3a6b3dcb5
16 changed files with 54 additions and 44 deletions
+1 -1
View File
@@ -22,7 +22,7 @@ function main () {
// In the next step, we're checking if the node has active validators.
// If it does, we're making another call to the api to get the balances for all validators
const balances = (validators && validators.length > 0)
? combineLatest(validators.map(authorityId => api.query.system.account(authorityId).pipe(first())))
? combineLatest(validators.map((authorityId) => api.query.system.account(authorityId).pipe(first())))
: of(null);
// We're combining the results together with the emitted value 'validators',