chore: pass options directly to the constructor

This commit is contained in:
Julien Fontanet 2016-11-23 09:49:27 +01:00
parent 20a9fc2497
commit 99c95626df

View File

@ -110,7 +110,7 @@ export const testSchema = {
// ===================================================================
class TransportEmailPlugin {
constructor (xo) {
constructor ({ xo }) {
this._sendEmail = ::this._sendEmail
this._set = ::xo.defineProperty
this._unset = null
@ -185,4 +185,4 @@ The transport-email plugin for Xen Orchestra server seems to be working fine, ni
// ===================================================================
export default ({ xo }) => new TransportEmailPlugin(xo)
export default opts => new TransportEmailPlugin(opts)