Skip to content

Commit

Permalink
Remove unnecessary move
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom-Newton committed Oct 15, 2023
1 parent 2b048ad commit 7fcf9db
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cpp/src/arrow/filesystem/azurefs.cc
Original file line number Diff line number Diff line change
Expand Up @@ -345,8 +345,8 @@ class AzureFileSystem::Impl {
RETURN_NOT_OK(ValidateFilePath(path));

auto blob_client = std::make_shared<Azure::Storage::Blobs::BlobClient>(
std::move(service_client_->GetBlobContainerClient(path.container)
.GetBlobClient(path.path_to_file)));
service_client_->GetBlobContainerClient(path.container)
.GetBlobClient(path.path_to_file));

auto ptr = std::make_shared<ObjectInputFile>(blob_client, fs->io_context(), path);
RETURN_NOT_OK(ptr->Init());
Expand All @@ -366,8 +366,8 @@ class AzureFileSystem::Impl {
RETURN_NOT_OK(ValidateFilePath(path));

auto blob_client = std::make_shared<Azure::Storage::Blobs::BlobClient>(
std::move(service_client_->GetBlobContainerClient(path.container)
.GetBlobClient(path.path_to_file)));
service_client_->GetBlobContainerClient(path.container)
.GetBlobClient(path.path_to_file));

auto ptr = std::make_shared<ObjectInputFile>(blob_client, fs->io_context(), path,
info.size());
Expand Down

0 comments on commit 7fcf9db

Please sign in to comment.