Skip to content

Commit d173302

Browse files
committed
Fix IDE0062
1 parent 84af048 commit d173302

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/UniGetUI/Pages/SoftwarePages/PackageBundlesPage.cs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -550,13 +550,15 @@ public async Task SaveFile()
550550

551551
public static async Task<string> CreateBundle(IEnumerable<IPackage> unsorted_packages, BundleFormatType formatType = BundleFormatType.JSON)
552552
{
553-
SerializableBundle_v1 exportable = new();
554-
exportable.export_version = 2.1;
553+
SerializableBundle_v1 exportable = new()
554+
{
555+
export_version = 2.1,
556+
};
555557

556558
List<IPackage> packages = unsorted_packages.ToList();
557559
packages.Sort(Comparison);
558560

559-
int Comparison(IPackage x, IPackage y)
561+
static int Comparison(IPackage x, IPackage y)
560562
{
561563
if(x.Id != y.Id) return String.Compare(x.Id, y.Id, StringComparison.Ordinal);
562564
if(x.Name != y.Name) return String.Compare(x.Name, y.Name, StringComparison.Ordinal);

0 commit comments

Comments
 (0)