Operator ? should be surrounded with a single space
This commit is contained in:
parent
63e0074a20
commit
c79bb2ed42
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue