You are correct. That is part of the groovy standard, the last line is considered an implicit return. The Apache Groovy programming language - Semantics
Also, sendHubCommand will be available for drivers in the next release. (it is currently available for apps)