diff options
author | Bjørn Erik Pedersen <[email protected]> | 2016-11-23 18:42:47 +0100 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2016-11-23 18:42:47 +0100 |
commit | 3739871f1e9fa1edffe80fea289dde33388949b4 (patch) | |
tree | fa0e2a604bdc1437aa0b6f72c09ab3262e835969 | |
parent | 4360452001af24088a4f72f6e1177b0a780aa3b8 (diff) | |
download | hugo-3739871f1e9fa1edffe80fea289dde33388949b4.tar.gz hugo-3739871f1e9fa1edffe80fea289dde33388949b4.zip |
transform: Simplify
-rw-r--r-- | transform/chain.go | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/transform/chain.go b/transform/chain.go index fbcf0eff2..1e550d341 100644 --- a/transform/chain.go +++ b/transform/chain.go @@ -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() |