Skip to content

Commit

Permalink
Optimize convertToNumber method (#14159)
Browse files Browse the repository at this point in the history
  • Loading branch information
finefuture authored May 8, 2024
1 parent 9d659eb commit faefee2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ public static Long convertToNumber(Object obj) {
timeout = Long.parseLong((String) obj);
} else if (obj instanceof Number) {
timeout = ((Number) obj).longValue();
} else {
} else if (obj != null) {
timeout = Long.parseLong(obj.toString());
}
} catch (Exception e) {
Expand Down

0 comments on commit faefee2

Please sign in to comment.