Fix rubocop warning 'TrailingComma' in if_code_spec.rb