Skip to content

Commit 4f3c2c2

Browse files
committed
handle expansion properly
1 parent 6c5a909 commit 4f3c2c2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/esdb/match.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,12 @@ def userdelete(user_id)
4242
JSON.parse(resp)
4343
end
4444

45-
def expansion
46-
(release_string && release_string[0] == '2' && release_string != '2.0.4.24944' && release_string != '2.0.5.25092') ? 'HotS' : 'WoL'
45+
def expansion_tag
46+
expansion == 0 ? 'WoL' : 'HotS'
4747
end
4848

4949
def expansion_long
50-
expansion == 'HotS' ? 'Heart of the Swarm' : 'Wings of Liberty'
50+
expansion == 1 ? 'Heart of the Swarm' : 'Wings of Liberty'
5151
end
5252
end
5353
end

0 commit comments

Comments
 (0)