From f263d91a640d408e031bec0f6a51c3b6f970c4f2 Mon Sep 17 00:00:00 2001 From: Quentin Date: Sun, 24 Apr 2016 23:29:09 +0200 Subject: [PATCH] Fix: if statement without curly braces --- src/main/java/com/gitblit/utils/StringUtils.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/gitblit/utils/StringUtils.java b/src/main/java/com/gitblit/utils/StringUtils.java index 7c4eef8b..0e23d637 100644 --- a/src/main/java/com/gitblit/utils/StringUtils.java +++ b/src/main/java/com/gitblit/utils/StringUtils.java @@ -128,8 +128,9 @@ public class StringUtils { } l = (l + 1) % tabLength; - if (inStr.charAt(i) == '\n') + if (inStr.charAt(i) == '\n') { l = 0; + } i++; } return retStr.toString(); -- 2.39.5