Skip to content

Commit 5561033

Browse files
committed
Cleanup
1 parent c6b64bc commit 5561033

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/launcher/java/org/truffleruby/launcher/RubyLauncher.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public class RubyLauncher extends AbstractLanguageLauncher {
3535

3636
private CommandLineOptions config;
3737
private String implementationName = null;
38-
private boolean helpOptionUsed;
38+
private boolean helpOptionUsed = false; // Any --help* option
3939

4040
public static void main(String[] args) {
4141
new RubyLauncher().launch(args);
@@ -193,7 +193,7 @@ protected boolean runLauncherAction() {
193193
}
194194

195195
String pager = getPagerFromEnv();
196-
if (pager == null || pager.length() == 0) {
196+
if (pager.isEmpty()) {
197197
return super.runLauncherAction();
198198
}
199199

@@ -354,7 +354,7 @@ private static String getPagerFromEnv() {
354354
return pager.strip();
355355
}
356356

357-
return null;
357+
return "";
358358
}
359359

360360
private void printPreRunInformation(CommandLineOptions config) {

0 commit comments

Comments
 (0)