Skip to content

Commit

Permalink
Reformat for style checker
Browse files Browse the repository at this point in the history
  • Loading branch information
ash211 committed Jul 25, 2014
1 parent 5d84e0e commit 9e4ad96
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions core/src/main/scala/org/apache/spark/HttpServer.scala
Original file line number Diff line number Diff line change
Expand Up @@ -84,15 +84,15 @@ private[spark] class HttpServer(resourceBase: File,
private def startWithIncrements(startPort: Int, maxRetries: Int): Tuple2[Server,Int] = {
for( offset <- 0 to maxRetries) {
try {
val (server, actualPort) = startOnPort(startPort+offset)
val (server, actualPort) = startOnPort(startPort + offset)
return (server, actualPort)
} catch {
case e: java.net.BindException => {
if (!e.getMessage.contains("Address already in use") ||
offset == (maxRetries-1)) {
throw e
}
logInfo("Could not bind on port: " + (startPort+offset))
logInfo("Could not bind on port: " + (startPort + offset))
}
case e: Exception => throw e
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ private[spark] class ConnectionManager(port: Int, conf: SparkConf,
offset == maxTries) {
throw e
}
logInfo("Could not bind on port: " + (port+offset))
logInfo("Could not bind on port: " + (port + offset))
}
case e: Exception => throw e
}
Expand Down

0 comments on commit 9e4ad96

Please sign in to comment.