Correct conditional setting of buffering retry expression.

This commit is contained in:
Ludovic Fernandez 2018-02-15 16:06:03 +01:00 committed by Traefiker Bot
parent 5212b7d3bd
commit dafdaa4208
2 changed files with 2 additions and 2 deletions

2
Gopkg.lock generated
View file

@ -1173,7 +1173,7 @@
"roundrobin",
"utils"
]
revision = "6a7a2a4e0782bf83cfe731d59a219178f2c26be9"
revision = "dacf34285ce530b272e9fe04d2f45f52e6374e36"
[[projects]]
name = "github.com/vulcand/predicate"

View file

@ -104,7 +104,7 @@ type optSetter func(b *Buffer) error
// CondSetter Conditional setter.
// ex: Cond(a > 4, MemRequestBodyBytes(a))
func CondSetter(condition bool, setter optSetter) optSetter {
if condition {
if !condition {
// NoOp setter
return func(*Buffer) error {
return nil