chore(lint): add new linters fatcontext, intrange and mirror

This commit is contained in:
Quentin McGaw
2024-10-20 13:15:20 +00:00
parent 8b5da2c580
commit 691ed320fd
5 changed files with 8 additions and 5 deletions

View File

@@ -37,8 +37,7 @@ type provider interface {
get(ctx context.Context, ip netip.Addr) (result Result, err error)
}
//nolint:ireturn
func newProvider(providerName Provider, client *http.Client) provider {
func newProvider(providerName Provider, client *http.Client) provider { //nolint:ireturn
switch providerName {
case Ipinfo:
return newIpinfo(client)

View File

@@ -4,7 +4,8 @@ import (
"sync/atomic"
)
func (f *Fetcher) getSubFetcher() ipFetcher { //nolint:ireturn
//nolint:ireturn
func (f *Fetcher) getSubFetcher() ipFetcher {
fetcher := f.fetchers[0]
if len(f.fetchers) > 1 { // cycling effect
index := int(atomic.AddUint32(f.counter, 1)) % len(f.fetchers)