Polish "Simplify code"

See gh-18342
This commit is contained in:
Phillip Webb
2019-09-26 19:12:18 -07:00
parent 4d0da4b700
commit a13666d696
2 changed files with 3 additions and 4 deletions

View File

@@ -143,8 +143,8 @@ class BootArchiveSupport {
}
private boolean isZip(InputStream inputStream) throws IOException {
for (byte b : ZIP_FILE_HEADER) {
if (inputStream.read() != b) {
for (byte headerByte : ZIP_FILE_HEADER) {
if (inputStream.read() != headerByte) {
return false;
}
}