ref: 21054f730af52efbef22f5986daf97a52d6630de
parent: df44b1930a8b5be8959a808fc788a42c6b0166bb
author: srinivasreddy <[email protected]>
date: Sat Mar 12 18:46:31 EST 2016
source: Consolidate filepath.Split calls
--- a/source/file.go
+++ b/source/file.go
@@ -92,8 +92,7 @@
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())