mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-18 21:11:19 +02:00
hugolib: Simplify
This commit is contained in:
@@ -1351,11 +1351,7 @@ func (p *Page) saveSourceAs(path string, safe bool) error {
|
||||
bc := make([]byte, b.Len(), b.Len())
|
||||
copy(bc, b.Bytes())
|
||||
|
||||
err := p.saveSource(bc, path, safe)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
return nil
|
||||
return p.saveSource(bc, path, safe)
|
||||
}
|
||||
|
||||
func (p *Page) saveSource(by []byte, inpath string, safe bool) (err error) {
|
||||
|
Reference in New Issue
Block a user