misc: remove redundant return statements
Signed-off-by: Hidde Beydals <hidde@hhh.computer>
This commit is contained in:
parent
354a8e8dbf
commit
25400d8810
|
|
@ -78,9 +78,7 @@ func (m mockBucketClient) VisitObjects(_ context.Context, _ string, f func(key,
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m mockBucketClient) Close(_ context.Context) {
|
func (m mockBucketClient) Close(_ context.Context) {}
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
func (m *mockBucketClient) addObject(key string, object mockBucketObject) {
|
func (m *mockBucketClient) addObject(key string, object mockBucketObject) {
|
||||||
if m.objects == nil {
|
if m.objects == nil {
|
||||||
|
|
|
||||||
|
|
@ -286,9 +286,7 @@ func (c *BlobClient) VisitObjects(ctx context.Context, bucketName string, visit
|
||||||
}
|
}
|
||||||
|
|
||||||
// Close has no effect on BlobClient.
|
// Close has no effect on BlobClient.
|
||||||
func (c *BlobClient) Close(_ context.Context) {
|
func (c *BlobClient) Close(_ context.Context) {}
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// ObjectIsNotFound checks if the error provided is an azblob.StorageError with
|
// ObjectIsNotFound checks if the error provided is an azblob.StorageError with
|
||||||
// an azblob.StorageErrorCodeBlobNotFound error code.
|
// an azblob.StorageErrorCodeBlobNotFound error code.
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue