Skip to content

Commit

Permalink
Remove superfluous null checks
Browse files Browse the repository at this point in the history
  • Loading branch information
PyvesB committed Jul 16, 2024
1 parent d0736a6 commit e47228e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public class ReadaptDebugDelegate extends DSPLaunchDelegate {
@Override
public void launch(ILaunchConfiguration configuration, String mode, ILaunch launch, IProgressMonitor monitor) {
String readaptPath = READAPT_PATH.getValue();
if (readaptPath == null || !new File(readaptPath).exists()) {
if (!new File(readaptPath).exists()) {
displayNotFoundWarning();
return;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public void start() throws IOException {

private static List<String> getSolargraphCommand() {
String gemPath = GEM_PATH.getValue();
if (gemPath != null && new File(gemPath).exists()) {
if (new File(gemPath).exists()) {
return CommandHelper.getPlatformCommand("\"" + gemPath + "\" stdio");
}
return List.of();
Expand Down

0 comments on commit e47228e

Please sign in to comment.