Skip to content

Commit 206de8c

Browse files
committed
Statement unnecessarily nested within else clause.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/cli/trunk@1677452 13f79535-47bb-0310-9956-ffa450edef68
1 parent 700f052 commit 206de8c

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

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

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -149,10 +149,7 @@ public static Number createNumber(String str) throws ParseException
149149
{
150150
return Double.valueOf(str);
151151
}
152-
else
153-
{
154-
return Long.valueOf(str);
155-
}
152+
return Long.valueOf(str);
156153
}
157154
catch (NumberFormatException e)
158155
{

0 commit comments

Comments
 (0)