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