Remove redundant null check Already covered by instanceOf check Change-Id: I1c2f70d03c2e35f2a967471168ffe6dd5d122c87 Signed-off-by: Alexander Kurtakov <akurtako@redhat.com> Reviewed-on: https://git.eclipse.org/r/c/platform/eclipse.platform.ua/+/187704
diff --git a/org.eclipse.help.base/src/org/eclipse/help/internal/base/BaseHelpSystem.java b/org.eclipse.help.base/src/org/eclipse/help/internal/base/BaseHelpSystem.java index 729a1b2..243ac60 100644 --- a/org.eclipse.help.base/src/org/eclipse/help/internal/base/BaseHelpSystem.java +++ b/org.eclipse.help.base/src/org/eclipse/help/internal/base/BaseHelpSystem.java
@@ -325,7 +325,7 @@ Class<?> c = bundle.loadClass(className); Object o = c.getDeclaredConstructor().newInstance(); //Runnable runnable = null; - if (o != null && o instanceof ILiveHelpAction) { + if (o instanceof ILiveHelpAction) { ILiveHelpAction helpExt = (ILiveHelpAction) o; if (arg != null) helpExt.setInitializationString(arg); @@ -352,7 +352,7 @@ /** * Check supplied token against stored token. Clears the stored token if * successful. - * + * * @param helpSessionToken * @return true if match successful */