fixing rubocop and foodcritic errors

style :D
rubocop complained about this syntax?