Skip to content

Commit

Permalink
Simplify nested else/if
Browse files Browse the repository at this point in the history
  • Loading branch information
sepe81 committed Dec 19, 2018
1 parent e428d8d commit 59e174e
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -153,10 +153,8 @@ public Object convertValue(Object value, Class toType) {
if (Enum.class.isAssignableFrom(toType))
result = enumValue(toType, value);
}
} else {
if (toType.isPrimitive()) {
result = primitiveDefaults.get(toType);
}
} else if (toType.isPrimitive()) {
result = primitiveDefaults.get(toType);
}
return result;
}
Expand Down

0 comments on commit 59e174e

Please sign in to comment.