Skip to content

Commit 61a465a

Browse files
Delete unused assignment. (#112)
1 parent 6408fc4 commit 61a465a

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ public static Option create(final char opt) throws IllegalArgumentException {
9797
* @throws IllegalArgumentException if {@code opt} is not a valid character. See Option.
9898
*/
9999
public static Option create(final String opt) throws IllegalArgumentException {
100-
Option option = null;
100+
Option option;
101101
try {
102102
// create the option
103103
option = new Option(opt, description);

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,6 @@ public static Options parsePattern(final String pattern) {
170170
options.addOption(option);
171171
required = false;
172172
type = null;
173-
opt = ' ';
174173
}
175174

176175
opt = ch;

0 commit comments

Comments
 (0)