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 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()