We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent df600ff commit 94878f8Copy full SHA for 94878f8
1 file changed
Config.cs
@@ -20,12 +20,12 @@ public static T Get<T>() where T : Config
20
{
21
for (int i = 0; i < _configs.Length; i++)
22
23
- var config = _configs[i];
+ var possibleConfig = _configs[i];
24
25
- if (config is T)
26
- return config as T;
+ if (possibleConfig is T config)
+ return config;
27
}
28
29
return null;
30
31
-}
+}
0 commit comments