misc: remove redundant return statements

Signed-off-by: Hidde Beydals <hidde@hhh.computer>
This commit is contained in:
Hidde Beydals 2023-10-09 12:10:50 +02:00
parent 354a8e8dbf
commit 25400d8810
No known key found for this signature in database
GPG Key ID: 979F380FC2341744
2 changed files with 2 additions and 6 deletions

View File

@ -78,9 +78,7 @@ func (m mockBucketClient) VisitObjects(_ context.Context, _ string, f func(key,
return nil
}
func (m mockBucketClient) Close(_ context.Context) {
return
}
func (m mockBucketClient) Close(_ context.Context) {}
func (m *mockBucketClient) addObject(key string, object mockBucketObject) {
if m.objects == nil {

View File

@ -286,9 +286,7 @@ func (c *BlobClient) VisitObjects(ctx context.Context, bucketName string, visit
}
// Close has no effect on BlobClient.
func (c *BlobClient) Close(_ context.Context) {
return
}
func (c *BlobClient) Close(_ context.Context) {}
// ObjectIsNotFound checks if the error provided is an azblob.StorageError with
// an azblob.StorageErrorCodeBlobNotFound error code.