[hydrawise] Small change in handleRemoval (#14976)

Follow-up #14945

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
This commit is contained in:
lolodomo
2023-05-11 21:58:13 +02:00
committed by GitHub
parent a65574a336
commit cc6ecb4372

View File

@@ -111,10 +111,7 @@ public class HydrawiseAccountHandler extends BaseBridgeHandler implements Access
@Override
public void handleRemoval() {
OAuthClientService oAuthService = this.oAuthService;
if (oAuthService != null) {
oAuthFactory.deleteServiceAndAccessToken(getThing().toString());
}
oAuthFactory.deleteServiceAndAccessToken(getThing().toString());
super.handleRemoval();
}