You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 7, 2022. It is now read-only.
The "good" path for Scout.prototype.provision returns the device instance. However, if the instance already exists, the result is null.
Is there a good reason for that? Feels weird to assume "success" if result is null or a returned device instance.
// if already initiated on runtime do not create a second instnaceif(this.server._jsDevices[deviceObject.id]){returnnull;}
I'm asking because I'm in a situation where it looks like I have a false result (don't know for sure if null though) and so reach into _jsDevices for the device instance, and that is also falsey.
The "good" path for Scout.prototype.provision returns the device instance. However, if the instance already exists, the result is
null
.Is there a good reason for that? Feels weird to assume "success" if result is null or a returned device instance.
I'm asking because I'm in a situation where it looks like I have a
false
result (don't know for sure ifnull
though) and so reach into_jsDevices
for the device instance, and that is also falsey.The text was updated successfully, but these errors were encountered: