Getting rid of a silly else
block
This commit is contained in:
@@ -5,7 +5,8 @@ import com.rabbitmq.client._
|
||||
object HelloWorldProducer extends App {
|
||||
if (args.length < 1) {
|
||||
println("You must provide a message argument")
|
||||
} else {
|
||||
exit
|
||||
}
|
||||
var messageBody = args(0)
|
||||
|
||||
var factory = new ConnectionFactory()
|
||||
@@ -21,4 +22,3 @@ object HelloWorldProducer extends App {
|
||||
|
||||
connection.close()
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user