[groupepsa] Small change in handleRemoval (#14977)

Follow-up #14943

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
This commit is contained in:
lolodomo 2023-05-11 21:58:45 +02:00 committed by GitHub
parent cc6ecb4372
commit b4551c365a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 3 deletions

View File

@ -143,9 +143,7 @@ public class GroupePSABridgeHandler extends BaseBridgeHandler {
@Override @Override
public void handleRemoval() { public void handleRemoval() {
if (oAuthService != null) { oAuthFactory.deleteServiceAndAccessToken(thing.getUID().getAsString());
oAuthFactory.deleteServiceAndAccessToken(thing.getUID().getAsString());
}
super.handleRemoval(); super.handleRemoval();
} }