Skip to content

Commit d435892

Browse files
author
begoldsm
committed
Address pre PR comment
Cormac is the new StyleCop :shipit:
1 parent 7ea9973 commit d435892

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/ResourceManager/DataLakeStore/Commands.DataLakeStore/Models/DataLakeStoreFileSystemClient.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ namespace Microsoft.Azure.Commands.DataLakeStore.Models
3535
public class DataLakeStoreFileSystemClient
3636
{
3737
private const decimal MaximumBytesPerDownloadRequest = 32 * 1024 * 1024; //32MB
38-
private const decimal bytesPerAppend = 20 * 1024 * 1024; //20MB
38+
private const decimal MaximumBytesPerAppendRequest = 20 * 1024 * 1024; //20MB
3939

4040
/// <summary>
4141
/// The lock object
@@ -424,7 +424,7 @@ public void ConcatenateFiles(string destinationPath, string accountName, string[
424424

425425
public void CreateFile(string filePath, string accountName, MemoryStream contents = null, bool overwrite = false)
426426
{
427-
if (contents.Length <= bytesPerAppend)
427+
if (contents.Length <= MaximumBytesPerAppendRequest)
428428
{
429429
// use content-length header for request
430430
_client.FileSystem.Create(accountName, filePath, contents, overwrite: overwrite);
@@ -453,7 +453,7 @@ public bool CreateDirectory(string dirPath, string accountName)
453453

454454
public void AppendToFile(string filePath, string accountName, MemoryStream contents)
455455
{
456-
if (contents.Length <= bytesPerAppend)
456+
if (contents.Length <= MaximumBytesPerAppendRequest)
457457
{
458458
// use content-length header for request
459459
_client.FileSystem.Append(accountName, filePath, contents);

0 commit comments

Comments
 (0)