Simplify if
This commit is contained in:
parent
eae7b2d662
commit
9f6505192c
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user