Skip to content

Commit 01442d4

Browse files
committed
simplify code
1 parent 56c77c2 commit 01442d4

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

fastexcel-reader/src/main/java/org/dhatim/fastexcel/reader/OPCPackage.java

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -168,13 +168,10 @@ private InputStream getEntryContent(String name) throws IOException {
168168
while (entries.hasMoreElements()) {
169169
ZipArchiveEntry e = entries.nextElement();
170170
if (e.getName().equalsIgnoreCase(name)) {
171-
entry = e;
172-
break;
171+
return zip.getInputStream(e);
173172
}
174173
}
175-
if (entry == null) {
176-
return null;
177-
}
174+
return null;
178175
}
179176
return zip.getInputStream(entry);
180177
}

0 commit comments

Comments
 (0)