[myq] Small change in handleRemoval (#14974)

Follow-up #14938

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
This commit is contained in:
lolodomo
2023-05-11 21:57:11 +02:00
committed by GitHub
parent 6cd10a771e
commit 762fa36415

View File

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