Skip to content

Commit

Permalink
Remove unnecessary warning when applying empty invocation policy.
Browse files Browse the repository at this point in the history
--
MOS_MIGRATED_REVID=119533501
  • Loading branch information
lfpino authored and dslomov committed Apr 12, 2016
1 parent 1df074a commit 5816b3b
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -122,12 +122,7 @@ public void enforce(OptionsParser parser) throws OptionsParsingException {
* @throws OptionsParsingException if any flag policy is invalid.
*/
public void enforce(OptionsParser parser, String command) throws OptionsParsingException {
if (invocationPolicy == null) {
return;
}

if (invocationPolicy.getFlagPoliciesCount() == 0) {
log.warning("InvocationPolicy contains no flag policies.");
if (invocationPolicy == null || invocationPolicy.getFlagPoliciesCount() == 0) {
return;
}

Expand Down

0 comments on commit 5816b3b

Please sign in to comment.