[#2] Remove unused variables

Signed-off-by: Aleksey Kravchenko <al.kravchenko@yadro.com>
This commit is contained in:
Aleksey Kravchenko 2025-01-10 12:19:24 +03:00
parent ca638bd459
commit 36b2093087

View file

@ -45,11 +45,11 @@ func NewFactory() location.Factory {
return location.NewHTTPBackendFactory("frostfs", ParseConfig, location.NoPassword, Create, Open)
}
func Open(ctx context.Context, cfg Config, rt http.RoundTripper) (backend.Backend, error) {
func Open(ctx context.Context, cfg Config, _ http.RoundTripper) (backend.Backend, error) {
return open(ctx, cfg)
}
func Create(ctx context.Context, cfg Config, rt http.RoundTripper) (backend.Backend, error) {
func Create(ctx context.Context, cfg Config, _ http.RoundTripper) (backend.Backend, error) {
return open(ctx, cfg)
}
@ -81,7 +81,7 @@ func open(ctx context.Context, cfg Config) (backend.Backend, error) {
}, nil
}
func (b *Backend) IsPermanentError(err error) bool {
func (b *Backend) IsPermanentError(error) bool {
return true
}