- tweak: error cleanup

This commit is contained in:
2025-01-19 22:52:29 +03:00
parent 46d17b98b2
commit 19de47bacf
9 changed files with 29 additions and 71 deletions

View File

@@ -1,4 +1,5 @@
using Nebula.Shared.Models;
using System.Diagnostics.CodeAnalysis;
using Nebula.Shared.Models;
using Robust.LoaderApi;
namespace Nebula.Shared.FileApis;
@@ -15,7 +16,7 @@ public class HashApi : IFileApi
foreach (var item in manifest) Manifest.TryAdd(item.Path, item);
}
public bool TryOpen(string path, out Stream? stream)
public bool TryOpen(string path,[NotNullWhen(true)] out Stream? stream)
{
if (path[0] == '/') path = path.Substring(1);