Skip to content

Commit ac96d62

Browse files
committed
No need to nest.
1 parent 7b52ba8 commit ac96d62

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

src/main/java/org/apache/commons/cli/DefaultParser.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -656,9 +656,8 @@ private void updateRequiredOptions(final Option option) throws AlreadySelectedEx
656656
private String stripLeadingAndTrailingQuotesDefaultOff(final String token) {
657657
if (stripLeadingAndTrailingQuotes != null && stripLeadingAndTrailingQuotes) {
658658
return Util.stripLeadingAndTrailingQuotes(token);
659-
} else {
660-
return token;
661659
}
660+
return token;
662661
}
663662

664663
/**
@@ -671,9 +670,8 @@ private String stripLeadingAndTrailingQuotesDefaultOff(final String token) {
671670
private String stripLeadingAndTrailingQuotesDefaultOn(final String token) {
672671
if (stripLeadingAndTrailingQuotes == null || stripLeadingAndTrailingQuotes) {
673672
return Util.stripLeadingAndTrailingQuotes(token);
674-
} else {
675-
return token;
676673
}
674+
return token;
677675
}
678676

679677
/**

0 commit comments

Comments
 (0)