Skip to content
This repository was archived by the owner on Feb 19, 2025. It is now read-only.

Commit c7586e1

Browse files
committed
Remove unnecessary null check
1 parent 95f4430 commit c7586e1

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

UniqueFileGenerator/FileHandler.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,7 @@ public void CreateFiles()
3636
{
3737
var hasSufficientSpace = EnsureSufficientDriveSpace();
3838

39-
// Abort if we've confirmed there is insufficient available drive space.
40-
if (hasSufficientSpace.HasValue && !hasSufficientSpace.Value)
39+
if (hasSufficientSpace == false)
4140
throw new InvalidOperationException(Resources.DriveSpaceInsufficient);
4241

4342
Directory.CreateDirectory(Settings.OutputDirectory);
@@ -121,4 +120,4 @@ public FileData(string name, string content)
121120
Content = content;
122121
}
123122
}
124-
}
123+
}

0 commit comments

Comments
 (0)