mirror of
https://github.com/restic/restic.git
synced 2026-08-06 05:33:17 +00:00
Apply go fix -any ./...
This commit is contained in:
@@ -522,7 +522,7 @@ func innerOpenBackend(ctx context.Context, s string, gopts Options, opts options
|
||||
}
|
||||
|
||||
// parseConfig parses the repository location and extended options and returns the scheme and configuration.
|
||||
func parseConfig(backends *location.Registry, s string, opts options.Options) (string, interface{}, error) {
|
||||
func parseConfig(backends *location.Registry, s string, opts options.Options) (string, any, error) {
|
||||
loc, err := location.Parse(backends, s)
|
||||
if err != nil {
|
||||
return "", nil, errors.Fatalf("parsing repository location failed: %v", err)
|
||||
@@ -558,7 +558,7 @@ func setupTransport(gopts Options) (http.RoundTripper, limiter.Limiter, error) {
|
||||
}
|
||||
|
||||
// createOrOpenBackend creates or opens a backend using the appropriate factory method.
|
||||
func createOrOpenBackend(ctx context.Context, scheme string, cfg interface{}, rt http.RoundTripper, lim limiter.Limiter, gopts Options, s string, create bool, printer restic.Printer) (backend.Backend, error) {
|
||||
func createOrOpenBackend(ctx context.Context, scheme string, cfg any, rt http.RoundTripper, lim limiter.Limiter, gopts Options, s string, create bool, printer restic.Printer) (backend.Backend, error) {
|
||||
factory := gopts.Backends.Lookup(scheme)
|
||||
if factory == nil {
|
||||
return nil, errors.Fatalf("invalid backend: %q", scheme)
|
||||
|
||||
Reference in New Issue
Block a user