We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4ed56f7 commit 0d778ddCopy full SHA for 0d778dd
src/Ramstack.FileSystem.Google/GcsWriteStream.cs
@@ -160,14 +160,11 @@ public override async ValueTask DisposeAsync()
160
{
161
_stream.Position = 0;
162
163
- if (_stream.Length != 0)
164
- {
165
- var destination = new global::Google.Apis.Storage.v1.Data.Object { Bucket = _fs.BucketName, Name = _objectName };
166
-
167
- await _fs.StorageClient
168
- .UploadObjectAsync(destination, _stream)
169
- .ConfigureAwait(false);
170
- }
+ var destination = new global::Google.Apis.Storage.v1.Data.Object { Bucket = _fs.BucketName, Name = _objectName };
+
+ await _fs.StorageClient
+ .UploadObjectAsync(destination, _stream)
+ .ConfigureAwait(false);
171
}
172
finally
173
0 commit comments