Inline variable
This commit is contained in:
parent
71a3bf2855
commit
aba2a385fd
1 changed files with 1 additions and 2 deletions
|
|
@ -97,8 +97,7 @@ public final class ZipHelper {
|
|||
private static void addFileToZip(final ZipOutputStream outZip,
|
||||
final String nameInZip,
|
||||
final InputStream inputStream) throws IOException {
|
||||
final var entry = new ZipEntry(nameInZip);
|
||||
outZip.putNextEntry(entry);
|
||||
outZip.putNextEntry(new ZipEntry(nameInZip));
|
||||
inputStream.transferTo(outZip);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue