diff --git a/src/user-provisioning.js b/src/user-provisioning.js index b34c4ed..ddb80ff 100644 --- a/src/user-provisioning.js +++ b/src/user-provisioning.js @@ -11,8 +11,9 @@ const defaultContentType = 'application/json'; class UserProvisioningAPI { constructor () { // Ensure there is only ever one instance of this class in the runtime - if (UserProvisioningAPI.singleton) { return UserProvisioningAPI.singleton; } - UserProvisioningAPI.singleton = this; + if (!UserProvisioningAPI.singleton) { + UserProvisioningAPI.singleton = this; + } } /**