diff --git a/core/src/storage/s3/S3ClientWrapper.cpp b/core/src/storage/s3/S3ClientWrapper.cpp index 12b991fa87..bb1e4c0a35 100644 --- a/core/src/storage/s3/S3ClientWrapper.cpp +++ b/core/src/storage/s3/S3ClientWrapper.cpp @@ -72,9 +72,7 @@ S3ClientWrapper::StartService() { void S3ClientWrapper::StopService() { - if (client_ptr_ != nullptr) { - client_ptr_ = nullptr; - } + client_ptr_ = nullptr; Aws::ShutdownAPI(options_); }