From 5a8abfb70efd89ec4120c7f78596d8b32a9f4f3d Mon Sep 17 00:00:00 2001 From: Henry Saputra Date: Sun, 12 Jan 2014 19:15:09 -0800 Subject: Address code review concerns and comments. --- .../stable/src/main/scala/org/apache/spark/deploy/yarn/Client.scala | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'yarn/stable') diff --git a/yarn/stable/src/main/scala/org/apache/spark/deploy/yarn/Client.scala b/yarn/stable/src/main/scala/org/apache/spark/deploy/yarn/Client.scala index c084485734..51d9adb9d4 100644 --- a/yarn/stable/src/main/scala/org/apache/spark/deploy/yarn/Client.scala +++ b/yarn/stable/src/main/scala/org/apache/spark/deploy/yarn/Client.scala @@ -206,10 +206,10 @@ class Client(args: ClientArguments, conf: Configuration, sparkConf: SparkConf) } //check for ports if (srcUri.getPort() != dstUri.getPort()) { - false - } else { - true + return false } + + true } /** Copy the file into HDFS if needed. */ -- cgit v1.2.3