| commit | 43e429cd03e6faac34faf94153cfb7a5adb6b928 | [log] [tgz] |
|---|---|---|
| author | Justinas Stankevičius <justinas@users.noreply.github.com> | Sat Jul 09 14:51:41 2016 +0300 |
| committer | GitHub <noreply@github.com> | Sat Jul 09 14:51:41 2016 +0300 |
| tree | 8284d885839f9c35bd0c449a6c55581ff1589212 | |
| parent | cbb4ab79b72442520259fcf3b6952f195b3eca76 [diff] | |
| parent | ce879342b921ce733afd39a146f35cdc1f19fa54 [diff] |
Merge pull request #35 from nhooyr/master avoid unnecessary allocation with New() in Append()
diff --git a/chain.go b/chain.go index 58a7a51..da0e2b5 100644 --- a/chain.go +++ b/chain.go
@@ -83,7 +83,7 @@ newCons = append(newCons, c.constructors...) newCons = append(newCons, constructors...) - return New(newCons...) + return Chain{newCons} } // Extend extends a chain by adding the specified chain