Skip to content

Commit 3b3eea0

Browse files
committed
NCBC-4190: Bucket manager had redundant code
Motivation ========== Recent commit left an extra check for success in a call. Simple fix. Modification ============ Just removed the few lines. Result ====== Tests pass fine. Change-Id: Ic767d50d51c6543e1abbb6be5b954f11ffae23d6 Reviewed-on: https://review.couchbase.org/c/couchbase-net-client/+/242537 Reviewed-by: Emilien Bevierre <emilien.bevierre@couchbase.com> Tested-by: Build Bot <build@couchbase.com>
1 parent 0c31823 commit 3b3eea0

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

src/Couchbase/Management/Buckets/BucketManager.cs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -363,12 +363,6 @@ public async Task FlushBucketAsync(string bucketName, FlushBucketOptions? option
363363
Statement = uri.ToString()
364364
};
365365

366-
if (result.IsSuccessStatusCode)
367-
{
368-
rootSpan.SetStatus(RequestSpanStatusCode.Ok);
369-
return;
370-
}
371-
372366
switch (result.StatusCode)
373367
{
374368
case HttpStatusCode.NotFound:

0 commit comments

Comments
 (0)