Skip to content

Commit

Permalink
Update Disk.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
Szymekk44 authored Sep 21, 2024
1 parent 3417fe5 commit 677136a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/Cosmos.System2/FileSystem/Disk.cs
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ public virtual void FormatPartition(int index, string format, bool quick = true,
var part = Partitions[index];

var xSize = (long)(Host.BlockCount * Host.BlockSize / 1024 / 1024);
if(FilesystemLetter == "" || FilesystemLetter == string.Empty)
if (string.IsNullOrEmpty(FilesystemLetter))
{
FilesystemLetter = VFSManager.GetNextFilesystemLetter();
}
Expand Down

0 comments on commit 677136a

Please sign in to comment.