From 375fd709a970d98048c0df31e170f96b036a1f65 Mon Sep 17 00:00:00 2001 From: Rayn Wei Date: Sat, 18 Apr 2020 13:22:47 +0800 Subject: [PATCH] . (#1972) Signed-off-by: RyanWei --- core/src/storage/s3/S3ClientWrapper.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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_); }