diff --git a/eclipse-solargraph-plugin/src/main/java/io/github/pyvesb/eclipse_solargraph/launch/debug/ReadaptDebugDelegate.java b/eclipse-solargraph-plugin/src/main/java/io/github/pyvesb/eclipse_solargraph/launch/debug/ReadaptDebugDelegate.java index 82b5c53..959d2f1 100644 --- a/eclipse-solargraph-plugin/src/main/java/io/github/pyvesb/eclipse_solargraph/launch/debug/ReadaptDebugDelegate.java +++ b/eclipse-solargraph-plugin/src/main/java/io/github/pyvesb/eclipse_solargraph/launch/debug/ReadaptDebugDelegate.java @@ -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; } diff --git a/eclipse-solargraph-plugin/src/main/java/io/github/pyvesb/eclipse_solargraph/server/SolargraphStreamConnectionProvider.java b/eclipse-solargraph-plugin/src/main/java/io/github/pyvesb/eclipse_solargraph/server/SolargraphStreamConnectionProvider.java index 1186d2e..5b63c39 100644 --- a/eclipse-solargraph-plugin/src/main/java/io/github/pyvesb/eclipse_solargraph/server/SolargraphStreamConnectionProvider.java +++ b/eclipse-solargraph-plugin/src/main/java/io/github/pyvesb/eclipse_solargraph/server/SolargraphStreamConnectionProvider.java @@ -64,7 +64,7 @@ public void start() throws IOException { private static List 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();