From 40d3fd58c18dc877133516693e8a036b194e2934 Mon Sep 17 00:00:00 2001 From: Dana Fallon <8871189+danafallon@users.noreply.github.com> Date: Wed, 31 Jul 2024 15:54:31 -0700 Subject: [PATCH] Lowercase err --- lib/throttler/throttler.go | 2 +- lib/throttler/throttler_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/throttler/throttler.go b/lib/throttler/throttler.go index 7fbddd08..63620f72 100644 --- a/lib/throttler/throttler.go +++ b/lib/throttler/throttler.go @@ -13,7 +13,7 @@ type Throttler struct { func NewThrottler(limit int64) (*Throttler, error) { if limit <= 0 { - return nil, fmt.Errorf("Throttler limit should be greater than 0") + return nil, fmt.Errorf("throttler limit should be greater than 0") } return &Throttler{limit: limit}, nil diff --git a/lib/throttler/throttler_test.go b/lib/throttler/throttler_test.go index d4196fe0..7b7e5ede 100644 --- a/lib/throttler/throttler_test.go +++ b/lib/throttler/throttler_test.go @@ -9,7 +9,7 @@ import ( func TestThrottler(t *testing.T) { { _, err := NewThrottler(0) - assert.ErrorContains(t, err, "Throttler limit should be greater than 0") + assert.ErrorContains(t, err, "throttler limit should be greater than 0") } { throttler, err := NewThrottler(1)