chore(xo-server/remotes): use Array#forEach()

This commit is contained in:
Julien Fontanet 2018-08-13 16:36:50 +02:00
parent 2cc59078b1
commit 1985134d94

View File

@ -1,7 +1,7 @@
import { getHandler } from '@xen-orchestra/fs' import { getHandler } from '@xen-orchestra/fs'
import { noSuchObject } from 'xo-common/api-errors' import { noSuchObject } from 'xo-common/api-errors'
import { forEach, mapToArray } from '../utils' import { mapToArray } from '../utils'
import { Remotes } from '../models/remote' import { Remotes } from '../models/remote'
// =================================================================== // ===================================================================
@ -24,7 +24,7 @@ export default class {
) )
const remotes = await this.getAllRemotes() const remotes = await this.getAllRemotes()
forEach(remotes, remote => { remotes.forEach(remote => {
this.updateRemote(remote.id, {}) this.updateRemote(remote.id, {})
}) })
}) })