mirror of
https://github.com/pgsty/minio.git
synced 2026-07-20 04:30:26 +03:00
Use new gofumpt (#21613)
Update tinylib. Should fix CI. `gofumpt -w .&&go generate ./...`
This commit is contained in:
@@ -75,6 +75,6 @@ func DialContextWithLookupHost(lookupHost LookupHost, baseDialCtx DialContext) D
|
||||
}
|
||||
}
|
||||
|
||||
return
|
||||
return conn, err
|
||||
}
|
||||
}
|
||||
|
||||
@@ -172,7 +172,7 @@ func newHTTPListener(ctx context.Context, serverAddrs []string, opts TCPOptions)
|
||||
|
||||
if len(listeners) == 0 {
|
||||
// No listeners initialized, no need to continue
|
||||
return
|
||||
return listener, listenErrs
|
||||
}
|
||||
listeners = slices.Clip(listeners)
|
||||
|
||||
@@ -187,5 +187,5 @@ func newHTTPListener(ctx context.Context, serverAddrs []string, opts TCPOptions)
|
||||
opts.Trace(fmt.Sprintf("opening %d listeners", len(listener.listeners)))
|
||||
listener.start()
|
||||
|
||||
return
|
||||
return listener, listenErrs
|
||||
}
|
||||
|
||||
@@ -132,7 +132,7 @@ func (srv *Server) Init(listenCtx context.Context, listenErrCallback func(listen
|
||||
return srv.Serve(l)
|
||||
}
|
||||
|
||||
return
|
||||
return serve, err
|
||||
}
|
||||
|
||||
// Shutdown - shuts down HTTP server.
|
||||
|
||||
Reference in New Issue
Block a user