From 2a976d795ffcbe9bba29bf7a0efad549e5c26c06 Mon Sep 17 00:00:00 2001 From: Alexander Neumann Date: Sat, 26 May 2018 10:12:30 +0200 Subject: [PATCH] b2: Remove extra error check --- internal/backend/b2/b2.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/internal/backend/b2/b2.go b/internal/backend/b2/b2.go index 4a2651223..32bf78361 100644 --- a/internal/backend/b2/b2.go +++ b/internal/backend/b2/b2.go @@ -295,10 +295,6 @@ func (be *b2Backend) List(ctx context.Context, t restic.FileType, fn func(restic return ctx.Err() } - if ctx.Err() != nil { - return ctx.Err() - } - attrs, err := obj.Attrs(ctx) if err != nil { return err