qol: inline variable declaration
This commit is contained in:
1 parent
5792771ea1
commit
1add4ee0f5
89 files changed
+1229
-1512
No files matched your search
@@ -17,8 +17,7 @@ namespace Disco.Services.Plugins.Features.UIExtension
|
||||
private static List<PluginFeatureManifest> GetUIModelRegistrations<UIModel>() where UIModel : BaseUIModel
|
||||
{
|
||||
Type uiModelType = typeof(UIModel);
|
||||
List<PluginFeatureManifest> modelRegistrations;
|
||||
if (!_registrations.TryGetValue(uiModelType, out modelRegistrations))
|
||||
if (!_registrations.TryGetValue(uiModelType, out var modelRegistrations))
|
||||
{
|
||||
lock (_registrations)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user