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/09 07:35:00 UTC

[jira] [Created] (YARN-8998) Simplify the condition check in CliUtils#argsForHelp

Zhankun Tang created YARN-8998:
----------------------------------

             Summary: 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
         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