summaryrefslogtreecommitdiffstats
path: root/source/file.go
diff options
context:
space:
mode:
Diffstat (limited to 'source/file.go')
-rw-r--r--source/file.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/source/file.go b/source/file.go
index efe604912..2bd6d2e1c 100644
--- a/source/file.go
+++ b/source/file.go
@@ -92,8 +92,7 @@ func NewFile(relpath string) *File {
relpath: relpath,
}
- f.dir, _ = filepath.Split(f.relpath)
- _, f.logicalName = filepath.Split(f.relpath)
+ f.dir, f.logicalName = filepath.Split(f.relpath)
f.ext = strings.TrimPrefix(filepath.Ext(f.LogicalName()), ".")
f.section = helpers.GuessSection(f.Dir())
f.uniqueID = helpers.Md5String(f.LogicalName())