Skip to content

Commit

Permalink
Inline single use variable
Browse files Browse the repository at this point in the history
  • Loading branch information
garydgregory committed Oct 6, 2024
1 parent 6f88cd1 commit 570d5d6
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,7 @@ public String format(final Object value, final String pattern) {
* @return The value formatted as a {@link String}.
*/
public String format(final Object value, final String pattern, final Locale locale) {
final Format formatter = getFormat(pattern, locale);
return format(value, formatter);
return format(value, getFormat(pattern, locale));
}

/**
Expand Down

0 comments on commit 570d5d6

Please sign in to comment.