Skip to content

Commit a2abf2a

Browse files
committed
replaced another ArgumentException.ThrowIfNullOrEmpty
1 parent 288aa19 commit a2abf2a

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/Files.App/Utils/Storage/StorageItems/ZipStorageFolder.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,7 @@ public ZipStorageFolder(string path, string containerPath, ArchiveFileInfo entry
4747
=> DateCreated = entry.CreationTime == DateTime.MinValue ? DateTimeOffset.MinValue : entry.CreationTime;
4848
public ZipStorageFolder(BaseStorageFile backingFile)
4949
{
50-
if (string.IsNullOrEmpty(backingFile.Path))
51-
{
52-
throw new ArgumentException("Backing file Path cannot be null");
53-
}
50+
ArgumentException.ThrowIfNullOrEmpty(backingFile.Path);
5451
Name = IO.Path.GetFileName(backingFile.Path.TrimEnd('\\', '/'));
5552
Path = backingFile.Path;
5653
this.containerPath = backingFile.Path;

0 commit comments

Comments
 (0)