Simplify if

This commit is contained in:
Trustin Lee 2012-09-28 16:59:51 +09:00
parent eae7b2d662
commit 9f6505192c

View File

@ -245,10 +245,7 @@ public class HttpStaticFileServerHandler extends ChannelInboundMessageHandlerAda
buf.append("<li><a href=\"../\">..</a></li>\r\n");
for (File f: dir.listFiles()) {
if (f.isHidden()) {
continue;
}
if (!f.canRead()) {
if (f.isHidden() || !f.canRead()) {
continue;
}