- shit: Cleanup this mess
This commit is contained in:
@@ -10,7 +10,7 @@ public class AssemblyApi : IFileApi
|
||||
{
|
||||
_root = root;
|
||||
}
|
||||
|
||||
|
||||
public bool TryOpen(string path, out Stream? stream)
|
||||
{
|
||||
return _root.TryOpen(path, out stream);
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user