]> source.dussan.org Git - gitblit.git/commitdiff
Fix: if statement without curly braces
authorQuentin <quentin@open-to-repair.fr>
Sun, 24 Apr 2016 21:29:09 +0000 (23:29 +0200)
committerFlorian Zschocke <f.zschocke+git@gmail.com>
Tue, 2 Aug 2022 20:10:17 +0000 (22:10 +0200)
src/main/java/com/gitblit/utils/StringUtils.java

index 7c4eef8bf43646ef538ec0c396986c2ab04689dd..0e23d637831ca1ff4a5d3aec0e3568a94b8d949c 100644 (file)
@@ -128,8 +128,9 @@ public class StringUtils {
                        }\r
                        \r
                        l = (l + 1) % tabLength;\r
-                       if (inStr.charAt(i) == '\n')\r
+                       if (inStr.charAt(i) == '\n') {\r
                                l = 0;\r
+                       }\r
                        i++;\r
                }\r
                return retStr.toString();\r