registerService() used to call successCallback only when registered
service had at least 1 component with read/write value request callback.
Now, the function will call successCallback even, if the service
has no components with such read/write value request calbacks.
[Verification] registerService() calls successCallback when no
read/write value request callbacks are registered
Change-Id: I4f4af260179fb21ac785dc1ccb0f5dab6d986496
Signed-off-by: Pawel Wasowski <p.wasowski2@samsung.com>
errorCallback
) {
var count = _countCallbackToRegisterInService(service);
+
+ if (count === 0) {
+ successCallback();
+ return;
+ }
+
var callbacksAggregator = new ResultCallbacksAggregator(
count,
function onAllSucceeded() {