mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-21 20:46:30 -05:00
helpers: Don't clean path twice
Join calls Clean as it says in docs. Minor performance improvement: Before: Average time per operation: 432ms Average memory allocated per operation: 127322kB Average allocations per operation: 2138137 After: Average time per operation: 428ms Average memory allocated per operation: 127350kB Average allocations per operation: 2137892
This commit is contained in:
parent
231c0a7e09
commit
9b080dc625
1 changed files with 1 additions and 1 deletions
|
@ -158,7 +158,7 @@ func (p *PathSpec) AbsPathify(inPath string) string {
|
|||
}
|
||||
|
||||
// TODO(bep): Consider moving workingDir to argument list
|
||||
return filepath.Clean(filepath.Join(p.workingDir, inPath))
|
||||
return filepath.Join(p.workingDir, inPath)
|
||||
}
|
||||
|
||||
// GetLayoutDirPath returns the absolute path to the layout file dir
|
||||
|
|
Loading…
Reference in a new issue