Skip to content

Commit 4446913

Browse files
committed
RECS0107: Redundant 'ToString()' call
[ci skip]
1 parent 501c541 commit 4446913

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

ICSharpCode.SharpZipLib.Tests/Zip/ZipTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ protected void MakeZipFile(string name, string entryNamePrefix, int entries, int
330330
using (ZipOutputStream zOut = new ZipOutputStream(fs)) {
331331
zOut.SetComment(comment);
332332
for (int i = 0; i < entries; ++i) {
333-
zOut.PutNextEntry(new ZipEntry(entryNamePrefix + (i + 1).ToString()));
333+
zOut.PutNextEntry(new ZipEntry(entryNamePrefix + (i + 1)));
334334
AddKnownDataToEntry(zOut, size);
335335
}
336336
}
@@ -343,7 +343,7 @@ protected void MakeZipFile(Stream storage, bool isOwner,
343343
zOut.IsStreamOwner = isOwner;
344344
zOut.SetComment(comment);
345345
for (int i = 0; i < entries; ++i) {
346-
zOut.PutNextEntry(new ZipEntry(entryNamePrefix + (i + 1).ToString()));
346+
zOut.PutNextEntry(new ZipEntry(entryNamePrefix + (i + 1)));
347347
AddKnownDataToEntry(zOut, size);
348348
}
349349
}

0 commit comments

Comments
 (0)