Operator ? should be surrounded with a single space

This commit is contained in:
Erik Michaels-Ober 2015-08-14 19:49:10 +02:00
parent 63e0074a20
commit c79bb2ed42
1 changed files with 9 additions and 9 deletions

View File

@ -68,16 +68,16 @@ module MLB
players = result['/sports/sports_team/roster']
new(:name => result['name'],
:league => (league ? league['name'] : nil),
:division => (division ? division['name'] : nil),
:manager => (manager ? manager['name'] : nil),
:wins => (stats ? stats['wins'].to_i : nil),
:losses => (stats ? stats['losses'].to_i : nil),
:founded => (founded ? founded['value'].to_i : nil),
:mascot => (mascot ? mascot['name'] : nil),
:ballpark => (ballpark ? ballpark['name'] : nil),
:league => (league ? league['name'] : nil),
:division => (division ? division['name'] : nil),
:manager => (manager ? manager['name'] : nil),
:wins => (stats ? stats['wins'].to_i : nil),
:losses => (stats ? stats['losses'].to_i : nil),
:founded => (founded ? founded['value'].to_i : nil),
:mascot => (mascot ? mascot['name'] : nil),
:ballpark => (ballpark ? ballpark['name'] : nil),
:logo_url => (logo_suffix ? logo_prefix + logo_suffix['id'] : nil),
:players => (players ? Player.all_from_roster(players) : []))
:players => (players ? Player.all_from_roster(players) : []))
end
end