From 7e7825a17081bab622f827ea39fa08cbf108f083 Mon Sep 17 00:00:00 2001 From: Oliver Booth Date: Sun, 2 Apr 2023 03:10:58 +0100 Subject: [PATCH] fix: suppress CA1000 This analyzer warning does not apply here. --- X10D.Unity/src/Singleton.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/X10D.Unity/src/Singleton.cs b/X10D.Unity/src/Singleton.cs index bbead4e..6d75df7 100644 --- a/X10D.Unity/src/Singleton.cs +++ b/X10D.Unity/src/Singleton.cs @@ -17,7 +17,9 @@ public abstract class Singleton : MonoBehaviour /// Gets the instance of the singleton. /// /// The singleton instance. +#pragma warning disable CA1000 public static T Instance +#pragma warning restore CA1000 { get => s_instance ? s_instance! : s_instanceLazy.Value; }