We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 68cd958 commit 930dadfCopy full SHA for 930dadf
opengrok-web/src/main/java/org/opengrok/web/PageConfig.java
@@ -1220,7 +1220,7 @@ public boolean isDir() {
1220
}
1221
1222
private static String trailingSlash(String path) {
1223
- return path.length() == 0 || path.charAt(path.length() - 1) != PATH_SEPARATOR
+ return path.isEmpty() || path.charAt(path.length() - 1) != PATH_SEPARATOR
1224
? PATH_SEPARATOR_STRING
1225
: "";
1226
0 commit comments