Skip to content

Commit

Permalink
SNOW-723810: Clean up and refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-ext-simba-lf committed Sep 22, 2023
1 parent d302f60 commit e6bcd21
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion Snowflake.Data.Tests/UnitTests/SFFileTransferAgentTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ namespace Snowflake.Data.Tests.UnitTests
using Snowflake.Data.Core;
using Snowflake.Data.Core.FileTransfer;
using System.Collections.Generic;
using Snowflake.Data.Tests.Mock;
using System.Threading.Tasks;
using System.Threading;
using System.IO;
Expand Down
4 changes: 2 additions & 2 deletions Snowflake.Data/Core/FileTransfer/SFFileTransferAgent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -596,7 +596,7 @@ private void initFileMetadata(

/// The storage client used to upload data from files or streams
/// This is only needed for remote storage types
if (TransferMetadata.stageInfo.locationType != LOCAL_FS)
if (StorageClientType.REMOTE == GetStorageClientType(TransferMetadata.stageInfo))
{
fileMetadata.client = SFRemoteStorageUtil.GetRemoteStorage(TransferMetadata);
}
Expand Down Expand Up @@ -661,7 +661,7 @@ private void initFileMetadata(

/// The storage client used to download data from files or streams
/// This is only needed for remote storage types
if (TransferMetadata.stageInfo.locationType != LOCAL_FS)
if (StorageClientType.REMOTE == GetStorageClientType(TransferMetadata.stageInfo))
{
fileMetadata.client = SFRemoteStorageUtil.GetRemoteStorage(TransferMetadata);

Expand Down

0 comments on commit e6bcd21

Please sign in to comment.