[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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 4 deletions

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();
}