mirror of
https://github.com/restic/restic.git
synced 2026-11-05 06:49:21 +00:00
Apply go fix -any ./...
This commit is contained in:
1 parent
d4088aa09b
commit
32e9869cc8
63 files changed
+197
-197
No files matched your search
@@ -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