We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e5f6716 commit 4ed56f7Copy full SHA for 4ed56f7
src/Ramstack.FileSystem.Google/GcsWriteStream.cs
@@ -138,11 +138,8 @@ protected override void Dispose(bool disposing)
138
{
139
_stream.Position = 0;
140
141
- if (_stream.Length != 0)
142
- {
143
- var destination = new global::Google.Apis.Storage.v1.Data.Object { Bucket = _fs.BucketName, Name = _objectName };
144
- _fs.StorageClient.UploadObject(destination, _stream);
145
- }
+ var destination = new global::Google.Apis.Storage.v1.Data.Object { Bucket = _fs.BucketName, Name = _objectName };
+ _fs.StorageClient.UploadObject(destination, _stream);
146
}
147
finally
148
0 commit comments