misc: chore: Use collection expressions

This commit is contained in:
KeatonTheBot
2025-03-06 20:46:29 -06:00
parent 4d5757417e
commit e2973a875a
236 changed files with 9843 additions and 7561 deletions
@@ -7,10 +7,10 @@ namespace Ryujinx.UI.Common.Helper
public static class ValueFormatUtils
{
private static readonly string[] _fileSizeUnitStrings =
{
[
"B", "KiB", "MiB", "GiB", "TiB", "PiB", "EiB", // Base 10 units, used for formatting and parsing
"KB", "MB", "GB", "TB", "PB", "EB", // Base 2 units, used for parsing legacy values
};
"KB", "MB", "GB", "TB", "PB", "EB" // Base 2 units, used for parsing legacy values
];
/// <summary>
/// Used by <see cref="FormatFileSize"/>.