From 4f71fa94058eae5dd6ea1bba40879e68740c284a Mon Sep 17 00:00:00 2001 From: Mikhail <99481254+DCFApixels@users.noreply.github.com> Date: Mon, 26 Feb 2024 11:58:26 +0800 Subject: [PATCH] code cleanup --- src/AutoRunners/ProcessRunnerBinder.cs | 4 ++-- src/Utils/Exceptions.cs | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) 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 {