Initializing key wasn't happening so if a null/undefined value was passed in to the key parameter, the subsequent call to .replace() (not wrapped in try) will throw an error in the module when more ideally the result would be a null/undefined being passed back from confidence so the null value issue will only arise in user code (where it's easier to debug).
Initializing key wasn't happening so if a null/undefined value was passed in to the key parameter, the subsequent call to .replace() (not wrapped in try) will throw an error in the module when more ideally the result would be a null/undefined being passed back from confidence so the null value issue will only arise in user code (where it's easier to debug).