mirror of
https://github.com/projectdiscovery/subfinder
synced 2026-06-21 14:05:24 +00:00
test: remove dead math.MaxUint32 no-op and unused math import
Per CodeRabbit nitpick: the blank identifier assignment and math import in TestBuildMultiRateLimiter_UnlimitedWhenNoLimits served no purpose. The test already verifies correct behavior via NoError + NotNil assertions.
This commit is contained in:
@@ -2,7 +2,6 @@ package passive
|
||||
|
||||
import (
|
||||
"context"
|
||||
"math"
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
@@ -120,6 +119,4 @@ func TestBuildMultiRateLimiter_UnlimitedWhenNoLimits(t *testing.T) {
|
||||
limiter, err := agent.buildMultiRateLimiter(context.Background(), 0, crl)
|
||||
require.NoError(t, err)
|
||||
require.NotNil(t, limiter)
|
||||
// No assertion on internal state - just verify it doesn't error
|
||||
_ = math.MaxUint32 // referenced for clarity
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user