mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-21 20:46:30 -05:00
transform: Simplify
This commit is contained in:
parent
4360452001
commit
3739871f1e
1 changed files with 2 additions and 4 deletions
|
@ -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()
|
||||||
|
|
Loading…
Reference in a new issue