Fix Content.Benchmark warnings (#17771)
This commit is contained in:
@@ -189,9 +189,7 @@ namespace Content.Benchmarks
|
||||
public TEntity GetEntity(TEntityUid entityUid)
|
||||
{
|
||||
if (!TryGetEntity(entityUid, out var entity))
|
||||
{
|
||||
throw new ArgumentException();
|
||||
}
|
||||
throw new ArgumentException($"Failed to get entity {entityUid} from storage.");
|
||||
|
||||
return entity;
|
||||
}
|
||||
@@ -200,7 +198,7 @@ namespace Content.Benchmarks
|
||||
private sealed class GenEntityStorage : EntityStorage<GenEntity, GenEntityUid>
|
||||
{
|
||||
private (int generation, GenEntity entity)[] _entities = new (int, GenEntity)[1];
|
||||
private readonly List<int> _availableSlots = new() {0};
|
||||
private readonly List<int> _availableSlots = new() { 0 };
|
||||
|
||||
public override bool TryGetEntity(GenEntityUid entityUid, out GenEntity entity)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user