From 931361ad98ed7dd730bd9c08f62173d8ad3ef0d2 Mon Sep 17 00:00:00 2001 From: glennfaison Date: Sat, 20 Jul 2024 02:18:00 +0100 Subject: [PATCH] [fix] apply suggestions by gitroll --- src/user-provisioning.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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; + } } /**