From ecfefb748e839cbebf8a527377dcc6ff65605d48 Mon Sep 17 00:00:00 2001 From: Jeremy Schlatter Date: Thu, 7 Apr 2016 17:10:48 -0700 Subject: [PATCH] pkg/blobserver/encrypt: delete redundant err check err is always nil at this point. Change-Id: I5dec5e05911c8846badb531a8204894ebac0cdd9 --- pkg/blobserver/encrypt/encrypt.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/pkg/blobserver/encrypt/encrypt.go b/pkg/blobserver/encrypt/encrypt.go index ab19ee161..6f2d438ed 100644 --- a/pkg/blobserver/encrypt/encrypt.go +++ b/pkg/blobserver/encrypt/encrypt.go @@ -232,9 +232,6 @@ func (s *storage) StatBlobs(dest chan<- blob.SizedRef, blobs []blob.Ref) error { if !ok { continue } - if err != nil { - continue - } dest <- blob.SizedRef{Ref: br, Size: plainSize} } return nil