Fixed implicit return.
Merge pull request #142 from pluma/master

Fixed implicit return in AMD code