code cleanup

This commit is contained in:
Mikhail 2024-02-26 11:58:26 +08:00
parent 8daaed75ed
commit 4f71fa9405
2 changed files with 2 additions and 3 deletions

View File

@ -9,7 +9,7 @@ namespace DCFApixels.DragonECS
private static MethodInfo _declareRunnerMethod = typeof(EcsPipeline).GetMethod(nameof(EcsPipeline.GetRunnerInstance));
public static T GetRunnerAuto<T>(this EcsPipeline self) where T : IEcsProcess
{
if(self.TryGetRunner(out T process))
if (self.TryGetRunner(out T process))
{
return process;
}
@ -19,7 +19,7 @@ namespace DCFApixels.DragonECS
Type runnerType = atr.runnerType;
if (type.IsGenericType)
{
if(runnerType.IsGenericType == false ||
if (runnerType.IsGenericType == false ||
runnerType.IsGenericTypeDefinition == false)
{
Throw.UndefinedException();

View File

@ -1,7 +1,6 @@
using System;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Security;
namespace DCFApixels.DragonECS
{