Skip to content

Commit c813c64

Browse files
committed
refactor: 代码重构
1 parent 1104e7a commit c813c64

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/BootstrapBlazor.Server/Components/Samples/Locators.razor.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,11 @@ protected override void OnInitialized()
4242
{
4343
base.OnInitialized();
4444

45-
_providers = IpLocatorProviders.Select(provider => new SelectedItem
45+
_providers = [.. IpLocatorProviders.Select(provider => new SelectedItem
4646
{
4747
Text = provider.GetType().Name,
4848
Value = provider.GetType().Name
49-
}).ToList();
49+
})];
5050
}
5151

5252
/// <summary>

0 commit comments

Comments
 (0)