File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/launcher/java/org/truffleruby/launcher Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ public class RubyLauncher extends AbstractLanguageLauncher {
35
35
36
36
private CommandLineOptions config ;
37
37
private String implementationName = null ;
38
- private boolean helpOptionUsed ;
38
+ private boolean helpOptionUsed = false ; // Any --help* option
39
39
40
40
public static void main (String [] args ) {
41
41
new RubyLauncher ().launch (args );
@@ -193,7 +193,7 @@ protected boolean runLauncherAction() {
193
193
}
194
194
195
195
String pager = getPagerFromEnv ();
196
- if (pager == null || pager . length () == 0 ) {
196
+ if (pager . isEmpty () ) {
197
197
return super .runLauncherAction ();
198
198
}
199
199
@@ -354,7 +354,7 @@ private static String getPagerFromEnv() {
354
354
return pager .strip ();
355
355
}
356
356
357
- return null ;
357
+ return "" ;
358
358
}
359
359
360
360
private void printPreRunInformation (CommandLineOptions config ) {
You can’t perform that action at this time.
0 commit comments