Review: Codacy code analysis update

Thanks http://codacy.com for spotting that bug!