Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
eregon committed May 26, 2022
1 parent c6b64bc commit 5561033
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/launcher/java/org/truffleruby/launcher/RubyLauncher.java
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public class RubyLauncher extends AbstractLanguageLauncher {

private CommandLineOptions config;
private String implementationName = null;
private boolean helpOptionUsed;
private boolean helpOptionUsed = false; // Any --help* option

public static void main(String[] args) {
new RubyLauncher().launch(args);
Expand Down Expand Up @@ -193,7 +193,7 @@ protected boolean runLauncherAction() {
}

String pager = getPagerFromEnv();
if (pager == null || pager.length() == 0) {
if (pager.isEmpty()) {
return super.runLauncherAction();
}

Expand Down Expand Up @@ -354,7 +354,7 @@ private static String getPagerFromEnv() {
return pager.strip();
}

return null;
return "";
}

private void printPreRunInformation(CommandLineOptions config) {
Expand Down

0 comments on commit 5561033

Please sign in to comment.