diff options
Diffstat (limited to 'UVtools.Core/Helpers.cs')
-rw-r--r-- | UVtools.Core/Helpers.cs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/UVtools.Core/Helpers.cs b/UVtools.Core/Helpers.cs index 5217f80..5ba461c 100644 --- a/UVtools.Core/Helpers.cs +++ b/UVtools.Core/Helpers.cs @@ -41,10 +41,8 @@ namespace UVtools.Core public static uint SerializeWriteFileStream(FileStream fs, object value, int offset = 0) { - using (MemoryStream stream = Serialize(value)) - { - return fs.WriteStream(stream, offset); - } + using MemoryStream stream = Serialize(value); + return fs.WriteStream(stream, offset); } public static T JsonDeserializeObject<T>(Stream stream) |