Remove comment in ZipFile.Create.cs (#86927)
authorMarc Brooks <IDisposable@gmail.com>
Wed, 31 May 2023 04:32:32 +0000 (23:32 -0500)
committerGitHub <noreply@github.com>
Wed, 31 May 2023 04:32:32 +0000 (22:32 -0600)
commitaca0eab8fcc5e4c82f7895b017595788752dc3f7
tree90b846b1667b42d7dc3f83e630199e39030e7415
parent9628be4b4b4b38924ae3d051ef2c99dddbece6c0
Remove comment in ZipFile.Create.cs (#86927)

* Remove comment in ZipFile.Create.cs

In #85491 the stream-based version of the `DoCreateFromDirectory` override copy-pasted comments from the string-based version
```csharp
// Rely on Path.GetFullPath for validation of sourceDirectoryName and destinationArchive
```
The last clause of that comment is not relevant in the stream-based version (the argument is `Stream destination`) so deleted that clause.

It's possible that the other comment is also misleading as we test the `compressionLevel ` argument just above (unlike in the `String destinationArchive` version
```csharp
            // Checking of compressionLevel is passed down to DeflateStream and the IDeflater implementation
            // as it is a pluggable component that completely encapsulates the meaning of compressionLevel.
```

* Remove compressionLevel validation comment

Co-authored-by: Carlos Sánchez López <1175054+carlossanlop@users.noreply.github.com>
---------

Co-authored-by: Carlos Sánchez López <1175054+carlossanlop@users.noreply.github.com>
src/libraries/System.IO.Compression.ZipFile/src/System/IO/Compression/ZipFile.Create.cs