From 68aeb93afa0dd4a5067fcefff9db0a70644d7128 Mon Sep 17 00:00:00 2001 From: Wim Date: Fri, 10 Aug 2018 00:38:19 +0200 Subject: Update nlopes/slack vendor --- vendor/github.com/nlopes/slack/backoff.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vendor/github.com/nlopes/slack/backoff.go') diff --git a/vendor/github.com/nlopes/slack/backoff.go b/vendor/github.com/nlopes/slack/backoff.go index e555a1ad..197bce2e 100644 --- a/vendor/github.com/nlopes/slack/backoff.go +++ b/vendor/github.com/nlopes/slack/backoff.go @@ -38,7 +38,7 @@ func (b *backoff) Duration() time.Duration { } //calculate this duration dur := float64(b.Min) * math.Pow(b.Factor, float64(b.attempts)) - if b.Jitter == true { + if b.Jitter { dur = rand.Float64()*(dur-float64(b.Min)) + float64(b.Min) } //cap! -- cgit v1.2.3