- shit: Cleanup this mess

This commit is contained in:
2025-01-14 22:10:16 +03:00
parent a0b2cfd677
commit 08e518602b
71 changed files with 1022 additions and 943 deletions

View File

@@ -10,7 +10,7 @@ public class AssemblyApi : IFileApi
{
_root = root;
}
public bool TryOpen(string path, out Stream? stream)
{
return _root.TryOpen(path, out stream);

View File

@@ -15,7 +15,6 @@ public sealed class FileApi : IReadWriteFileApi
{
var fullPath = Path.Join(RootPath, path);
if (File.Exists(fullPath))
{
try
{
stream = new FileStream(fullPath, FileMode.Open, FileAccess.Read, FileShare.ReadWrite);
@@ -26,7 +25,6 @@ public sealed class FileApi : IReadWriteFileApi
stream = null;
return false;
}
}
stream = null;
return false;
@@ -66,6 +64,7 @@ public sealed class FileApi : IReadWriteFileApi
{
// Log exception if necessary
}
return false;
}