mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-25 18:05:33 +02:00
Remove unnecessary check after instanceof
This commit is contained in:
parent
25deb8be8d
commit
1f3cf11369
2 changed files with 5 additions and 11 deletions
|
@ -713,10 +713,7 @@ public class SystemViewRemoteSearchResultAdapter extends AbstractSystemViewAdapt
|
|||
if (context instanceof IRemoteFile)
|
||||
{
|
||||
IRemoteFile cwd = (IRemoteFile)context;
|
||||
if (cwd != null)
|
||||
{
|
||||
return cwd.getAbsolutePath();
|
||||
}
|
||||
return cwd.getAbsolutePath();
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -724,6 +721,6 @@ public class SystemViewRemoteSearchResultAdapter extends AbstractSystemViewAdapt
|
|||
}
|
||||
}
|
||||
}
|
||||
return "";
|
||||
return ""; //$NON-NLS-1$
|
||||
}
|
||||
}
|
|
@ -594,12 +594,9 @@ public abstract class RemoteCmdSubSystem extends SubSystem implements IRemoteCmd
|
|||
if (context instanceof IRemoteFile)
|
||||
{
|
||||
IRemoteFile pwdf = (IRemoteFile) context;
|
||||
if (pwdf != null)
|
||||
{
|
||||
String pwd = pwdf.getAbsolutePath();
|
||||
shellBuffer.append(pwd);
|
||||
gotShell = true;
|
||||
}
|
||||
String pwd = pwdf.getAbsolutePath();
|
||||
shellBuffer.append(pwd);
|
||||
gotShell = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue