mirror of
https://github.com/gohugoio/hugoDocs.git
synced 2025-09-15 19:14:40 -04:00
transform: Simplify
This commit is contained in:
parent
4360452001
commit
3739871f1e
@ -74,11 +74,9 @@ func (c *chain) Apply(w io.Writer, r io.Reader, p []byte) error {
|
||||
}
|
||||
|
||||
if len(*c) == 0 {
|
||||
if _, err := b1.WriteTo(w); err != nil {
|
||||
_, err := b1.WriteTo(w)
|
||||
return err
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
b2 := bp.GetBuffer()
|
||||
defer bp.PutBuffer(b2)
|
||||
|
Loading…
x
Reference in New Issue
Block a user