Skip to content

Commit d46ce51

Browse files
authored
Optimization
1 parent 94878f8 commit d46ce51

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

Config.cs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,8 @@ private static void Load() =>
1919
public static T Get<T>() where T : Config
2020
{
2121
for (int i = 0; i < _configs.Length; i++)
22-
{
23-
var possibleConfig = _configs[i];
24-
25-
if (possibleConfig is T config)
22+
if (_configs[i] is T config)
2623
return config;
27-
}
2824

2925
return null;
3026
}

0 commit comments

Comments
 (0)