Skip to content

Commit

Permalink
Remove unwanted conditional to null check Boolean value
Browse files Browse the repository at this point in the history
  • Loading branch information
kishorvpatil committed Sep 9, 2016
1 parent 38a7e3a commit 67f8de7
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,7 @@ private[spark] class Client(
def submitApplication(): ApplicationId = {
var appId: ApplicationId = null
try {
if ( launcherServerSecret !=null && launcherServerSecret != "" && launcherServerPort != 0 &&
launcherServerStopFlag != null) {
if ( launcherServerSecret !=null && launcherServerSecret != "" && launcherServerPort != 0) {
launcherBackend.connect(launcherServerPort, launcherServerSecret, launcherServerStopFlag)
} else {
launcherBackend.connect()
Expand Down

0 comments on commit 67f8de7

Please sign in to comment.