Permalink
Browse files

reversed an 'or' statement that could cause an exception

  • Loading branch information...
1 parent b1103f7 commit 2d3706f7e03ac923be7fc55d87ad0b2f06cfdf77 @dwhitney dwhitney committed Jun 19, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 netty-server/src/main/scala/resources.scala
@@ -90,7 +90,7 @@ case class Resources(base: java.net.URL,
Date(Dates.format(new GregorianCalendar().getTime))
)).addListener(ChannelFutureListener.CLOSE)
case _ =>
- if(file.isHidden || !file.exists) notFound(req)
+ if(!file.exists || file.isHidden) notFound(req)
else if(!file.isFile) forbid(req)
else try {
val raf = new RandomAccessFile(file, "r")

0 comments on commit 2d3706f

Please sign in to comment.