mirror of
https://github.com/apache/commons-lang.git
synced 2025-02-09 11:34:55 +00:00
Remove unnecessary conditions. It's no need it after assigns tmp to duration. (#965)
This commit is contained in:
parent
ee7afc5c2d
commit
65ac1e9f88
@ -190,9 +190,6 @@ public static String formatDurationWords(
|
||||
duration = tmp;
|
||||
tmp = StringUtils.replaceOnce(duration, " 0 minutes", StringUtils.EMPTY);
|
||||
duration = tmp;
|
||||
if (tmp.length() != duration.length()) {
|
||||
duration = StringUtils.replaceOnce(tmp, " 0 seconds", StringUtils.EMPTY);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (!duration.isEmpty()) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user