code climate recommendations

Expected '{' and instead saw '$'