This is an automated email from the ASF dual-hosted git repository.

ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-lang.git

commit 416a354308bbea30466639d141c81b0580d6cd01
Author: Gary Gregory <garydgreg...@gmail.com>
AuthorDate: Sun May 12 18:42:55 2024 -0400

    Indentation
---
 .../java/org/apache/commons/lang3/time/DurationFormatUtils.java     | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git 
a/src/main/java/org/apache/commons/lang3/time/DurationFormatUtils.java 
b/src/main/java/org/apache/commons/lang3/time/DurationFormatUtils.java
index 5e0fbccc8..417d2a592 100644
--- a/src/main/java/org/apache/commons/lang3/time/DurationFormatUtils.java
+++ b/src/main/java/org/apache/commons/lang3/time/DurationFormatUtils.java
@@ -257,9 +257,9 @@ public class DurationFormatUtils {
               }
             }
             if (isLiteral) {
-               if (!inOptional || !lastOutputZero) {
-                     buffer.append(value.toString());
-               }
+                if (!inOptional || !lastOutputZero) {
+                    buffer.append(value.toString());
+                }
             } else if (value.equals(y)) {
                 lastOutputSeconds = false;
                 lastOutputZero = years == 0;

Reply via email to