summaryrefslogtreecommitdiffstats
path: root/modules/util/path.go
diff options
context:
space:
mode:
Diffstat (limited to 'modules/util/path.go')
-rw-r--r--modules/util/path.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/modules/util/path.go b/modules/util/path.go
index e8537fb6b9..1272f5af2e 100644
--- a/modules/util/path.go
+++ b/modules/util/path.go
@@ -40,9 +40,8 @@ func PathJoinRel(elem ...string) string {
return ""
} else if p == "/" {
return "."
- } else {
- return p[1:]
}
+ return p[1:]
}
// PathJoinRelX joins the path elements into a single path like PathJoinRel,