]> git.basschouten.com Git - openhab-addons.git/commitdiff
[myq] Small change in handleRemoval (#14974)
authorlolodomo <lg.hc@free.fr>
Thu, 11 May 2023 19:57:11 +0000 (21:57 +0200)
committerGitHub <noreply@github.com>
Thu, 11 May 2023 19:57:11 +0000 (21:57 +0200)
Follow-up #14938

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
bundles/org.openhab.binding.myq/src/main/java/org/openhab/binding/myq/internal/handler/MyQAccountHandler.java

index a533321fa8e052f2d1e034c59860ee54d8e764d1..70902167fc6aaf7065156bcf5d34483f500c9035 100644 (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();
     }