Skip to content

Commit

Permalink
Statement unnecessarily nested within else clause.
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/cli/trunk@1677452 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
garydgregory committed May 3, 2015
1 parent 700f052 commit 206de8c
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/main/java/org/apache/commons/cli/TypeHandler.java
Original file line number Diff line number Diff line change
Expand Up @@ -149,10 +149,7 @@ public static Number createNumber(String str) throws ParseException
{
return Double.valueOf(str);
}
else
{
return Long.valueOf(str);
}
return Long.valueOf(str);
}
catch (NumberFormatException e)
{
Expand Down

0 comments on commit 206de8c

Please sign in to comment.