You are viewing a plain text version of this content. The canonical link for it is here.
Posted to yarn-issues@hadoop.apache.org by "Zhankun Tang (JIRA)" <ji...@apache.org> on 2018/11/12 04:17:00 UTC
[jira] [Comment Edited] (YARN-8998) [Submarine] Simplify the
condition check in CliUtils#argsForHelp
[ https://issues.apache.org/jira/browse/YARN-8998?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16683199#comment-16683199 ]
Zhankun Tang edited comment on YARN-8998 at 11/12/18 4:16 AM:
--------------------------------------------------------------
Merge this with -YARN-8997-
was (Author: tangzhankun):
Merge this with YARN-8996
> [Submarine] Simplify the condition check in CliUtils#argsForHelp
> ----------------------------------------------------------------
>
> Key: YARN-8998
> URL: https://issues.apache.org/jira/browse/YARN-8998
> Project: Hadoop YARN
> Issue Type: Improvement
> Reporter: Zhankun Tang
> Assignee: Zhankun Tang
> Priority: Minor
> Attachments: YARN-8998-trunk-001.patch
>
>
> {code:java}
> if (args[0].equals("-h") || args[0].equals("--help")) {
> return true;
> }
> {code}
> Can be simlified to:
> {code:java}
> return args[0].equals("-h") || args[0].equals("--help");
> {code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: yarn-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: yarn-issues-help@hadoop.apache.org