Remove unnecessary conditions. It's no need it after assigns tmp to duration. (#965)

This commit is contained in:
Arturo Bernal 2023-04-18 14:43:43 +02:00 committed by GitHub
parent ee7afc5c2d
commit 65ac1e9f88
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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()) {