summaryrefslogtreecommitdiffhomepage
path: root/transform
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <[email protected]>2016-11-23 18:42:47 +0100
committerBjørn Erik Pedersen <[email protected]>2016-11-23 18:42:47 +0100
commit3739871f1e9fa1edffe80fea289dde33388949b4 (patch)
treefa0e2a604bdc1437aa0b6f72c09ab3262e835969 /transform
parent4360452001af24088a4f72f6e1177b0a780aa3b8 (diff)
downloadhugo-3739871f1e9fa1edffe80fea289dde33388949b4.tar.gz
hugo-3739871f1e9fa1edffe80fea289dde33388949b4.zip
transform: Simplify
Diffstat (limited to 'transform')
-rw-r--r--transform/chain.go6
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()