diff --git a/src/AutoRunners/ProcessRunnerBinder.cs b/src/AutoRunners/ProcessRunnerBinder.cs index eaa128f..c382480 100644 --- a/src/AutoRunners/ProcessRunnerBinder.cs +++ b/src/AutoRunners/ProcessRunnerBinder.cs @@ -9,7 +9,7 @@ namespace DCFApixels.DragonECS private static MethodInfo _declareRunnerMethod = typeof(EcsPipeline).GetMethod(nameof(EcsPipeline.GetRunnerInstance)); public static T GetRunnerAuto(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(); diff --git a/src/Utils/Exceptions.cs b/src/Utils/Exceptions.cs index 8e0ddc6..a9074aa 100644 --- a/src/Utils/Exceptions.cs +++ b/src/Utils/Exceptions.cs @@ -1,7 +1,6 @@ using System; using System.Reflection; using System.Runtime.CompilerServices; -using System.Security; namespace DCFApixels.DragonECS {