update linter settings (#4790)

This commit is contained in:
Alessandro Ros 2025-07-26 16:44:32 +02:00 committed by GitHub
parent 7ac752097b
commit d423a71aaa
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
52 changed files with 320 additions and 225 deletions

View file

@ -58,7 +58,7 @@ func (s *Source) Run(params defs.StaticSourceRunParams) error {
for {
select {
case err := <-readDone:
case err = <-readDone:
ctxCancel()
return err
@ -124,9 +124,9 @@ func (s *Source) runReader(ctx context.Context, u *url.URL, fingerprint string)
go func() {
for {
conn.NetConn().SetReadDeadline(time.Now().Add(time.Duration(s.ReadTimeout)))
err := r.Read()
if err != nil {
readerErr <- err
err2 := r.Read()
if err2 != nil {
readerErr <- err2
return
}
}
@ -138,7 +138,7 @@ func (s *Source) runReader(ctx context.Context, u *url.URL, fingerprint string)
<-readerErr
return fmt.Errorf("terminated")
case err := <-readerErr:
case err = <-readerErr:
return err
}
}