Skip to content

Commit ea86d61

Browse files
committed
chore: remove todo
1 parent 76870a8 commit ea86d61

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

BugSplatDotNetStandard/Utils/TempFile.cs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ public ITempFile TryCreateFromBytes(string fileName, byte[] bytes)
2323
}
2424
catch (Exception ex)
2525
{
26-
// Log or handle the exception as needed
2726
Console.Error.WriteLine($"Error creating temp file: {ex.Message}");
2827
return null;
2928
}
@@ -37,7 +36,6 @@ public ITempFile CreateFromBytes(string fileName, byte[] bytes)
3736
var tempFolder = CreateTempFolder();
3837
var tempFileName = Path.Combine(tempFolder.FullName, fileName);
3938

40-
// TODO BG use something that can work around file locks
4139
File.WriteAllBytes(tempFileName, bytes);
4240

4341
return new TempFile(new FileInfo(tempFileName));
@@ -69,6 +67,11 @@ private static DirectoryInfo CreateTempFolder()
6967
return new DirectoryInfo(tempFileFolder);
7068
}
7169

70+
private static void WriteChunkedBytesToFile()
71+
{
72+
73+
}
74+
7275
private static void SafeCreateZipEntry(ZipArchive zipArchive, FileInfo file)
7376
{
7477
try

0 commit comments

Comments
 (0)