Permalink
Browse files

transform: Simplify

  • Loading branch information...
1 parent 4360452 commit 3739871f1e9fa1edffe80fea289dde33388949b4 @bep bep committed Nov 23, 2016
Showing with 2 additions and 4 deletions.
  1. +2 −4 transform/chain.go
View
@@ -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()

0 comments on commit 3739871

Please sign in to comment.