Skip to content

Commit

Permalink
Lowercase err
Browse files Browse the repository at this point in the history
  • Loading branch information
danafallon committed Jul 31, 2024
1 parent 412328e commit 40d3fd5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/throttler/throttler.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion lib/throttler/throttler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 40d3fd5

Please sign in to comment.