fix(xo-server/remote-handlers): do not swallow sync() value

This commit is contained in:
Julien Fontanet 2018-03-08 10:51:24 +01:00
parent 788a1accbd
commit 48910f9c0f

View File

@ -33,11 +33,11 @@ export default class RemoteHandlerAbstract {
/** /**
* Asks the handler to sync the state of the effective remote with its' metadata * Asks the handler to sync the state of the effective remote with its' metadata
*/ */
async sync (): Promise<void> { async sync (): Promise<mixed> {
await this._sync() return this._sync()
} }
async _sync (): Promise<void> { async _sync (): Promise<mixed> {
throw new Error('Not implemented') throw new Error('Not implemented')
} }