Skip to content

Commit d769dc6

Browse files
CopilotViktorHofer
andauthored
Address code review: remove redundant null-forgiving op and fix doc grammar
Co-authored-by: ViktorHofer <7412651+ViktorHofer@users.noreply.github.com>
1 parent c0998f2 commit d769dc6

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

documentation/specs/question.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ Error when SkipUnchangedFiles is true.
7979
Error if the destination zip file doesn't exists.
8080

8181
`TarDirectory`
82-
Error if the destination tar file doesn't exists.
82+
Error if the destination tar file doesn't exist.
8383

8484
## Common Error
8585

src/Tasks/TarDirectory.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ public override bool Execute()
108108
Log.LogMessageFromResources(MessageImportance.High, "TarDirectory.Comment", sourceDirectory.FullName, destinationFile.FullName);
109109

110110
bool useGZip = false;
111-
if (!string.IsNullOrEmpty(Compression) && !TryParseCompression(Compression!, out useGZip))
111+
if (!string.IsNullOrEmpty(Compression) && !TryParseCompression(Compression, out useGZip))
112112
{
113113
Log.LogWarningWithCodeFromResources("TarDirectory.WarningInvalidCompression", Compression);
114114
}

0 commit comments

Comments
 (0)