Fix whitespace

This commit is contained in:
Antonio Andelic 2023-05-02 11:08:26 +00:00
parent 8c91dbdfc6
commit 468ed32b23

View File

@ -123,15 +123,15 @@ ProviderType deduceProviderType(const std::string & url, const std::shared_ptr<A
/// find credential keys we can simply behave as the underlying storage is S3
/// otherwise, we need to be aware we are making requests to GCS
/// and replace all headers with a valid prefix when needed
if (credentials_provider)
{
if (credentials_provider)
{
auto credentials = credentials_provider->GetAWSCredentials();
if (!credentials.IsEmpty())
return ProviderType::AWS;
}
}
if (url.find(".amazonaws.com") != std::string::npos)
return ProviderType::AWS;
return ProviderType::AWS;
if (url.find("storage.googleapis.com") != std::string::npos)
return ProviderType::GCS;