mirror of
https://github.com/restic/restic.git
synced 2026-10-11 20:47:12 +00:00
Fix linter errors (except for tests)
This commit is contained in:
1 parent
a8cda0119c
commit
c0514dd8ba
36 files changed
+61
-56
No files matched your search
@@ -28,7 +28,7 @@ func NewFactory() location.Factory {
|
||||
|
||||
return location.NewHTTPBackendFactory[struct{}, *MemoryBackend](
|
||||
"mem",
|
||||
func(s string) (*struct{}, error) {
|
||||
func(_ string) (*struct{}, error) {
|
||||
return &struct{}{}, nil
|
||||
},
|
||||
location.NoPassword,
|
||||
|
||||
@@ -183,7 +183,7 @@ func newBackend(ctx context.Context, cfg Config, lim limiter.Limiter) (*Backend,
|
||||
dialCount := 0
|
||||
tr := &http2.Transport{
|
||||
AllowHTTP: true, // this is not really HTTP, just stdin/stdout
|
||||
DialTLS: func(network, address string, cfg *tls.Config) (net.Conn, error) {
|
||||
DialTLS: func(network, address string, _ *tls.Config) (net.Conn, error) {
|
||||
debug.Log("new connection requested, %v %v", network, address)
|
||||
if dialCount > 0 {
|
||||
// the connection to the child process is already closed
|
||||
|
||||
Reference in new issue
Block a user