1
0
mirror of https://github.com/gohugoio/hugo.git synced 2024-05-11 05:54:58 +00:00

transform: Simplify

This commit is contained in:
Bjørn Erik Pedersen
2016-11-23 18:42:47 +01:00
parent 4360452001
commit 3739871f1e

View File

@@ -74,10 +74,8 @@ func (c *chain) Apply(w io.Writer, r io.Reader, p []byte) error {
}
if len(*c) == 0 {
if _, err := b1.WriteTo(w); err != nil {
return err
}
return nil
_, err := b1.WriteTo(w)
return err
}
b2 := bp.GetBuffer()