Skip to content

Commit

Permalink
Fix string style
Browse files Browse the repository at this point in the history
  • Loading branch information
rnowling committed Nov 20, 2014
1 parent 07c6132 commit b0ef9ea
Showing 1 changed file with 2 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,17 +80,6 @@ object DFSReadWriteTest {

i += 1
dfsDirPath = new File(args(i))
if(!dfsDirPath.exists) {
System.err.println("Given path (" + args(i) + ") does not exist.\n")
printUsage()
System.exit(1)
}

if(dfsDirPath.isDirectory) {
System.err.println("Given path (" + args(i) + ") is not a directory.\n")
printUsage()
System.exit(1)
}
}

def runLocalWordCount(fileContents: List[String]): Int = {
Expand Down Expand Up @@ -137,10 +126,10 @@ object DFSReadWriteTest {

if(localWordCount == dfsWordCount) {
println(s"Success! Local Word Count ($localWordCount) " +
"and DFS Word Count ($dfsWordCount) agree.")
s"and DFS Word Count ($dfsWordCount) agree.")
} else {
println(s"Failure! Local Word Count ($localWordCount) " +
"and DFS Word Count ($dfsWordCount) disagree.")
s"and DFS Word Count ($dfsWordCount) disagree.")
}

}
Expand Down

0 comments on commit b0ef9ea

Please sign in to comment.