Skip to content

Commit e122ea0

Browse files
committed
it would help if I used the same variable names
1 parent eae796b commit e122ea0

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

lib/baseballbot/templates/components/pick_the_stick.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,14 @@ def rows
4141
end
4242

4343
def pick_the_stick_data
44-
api_token = ENV.fetch('BASEBALLBOT_PTS_TOKEN', nil)
44+
token = ENV.fetch('BASEBALLBOT_PTS_TOKEN', nil)
4545
team_code = @subreddit.team.code
4646

47-
raise 'API token is required' unless api_token && !api_token.empty?
47+
raise 'API token is required' unless token && !token.empty?
4848

4949
raise 'Team code is required' if team_code.nil? || team_code.empty?
5050

51-
JSON.parse(URI.parse(format(BASE_URL, api_token:, team_code:)).open.read)
51+
JSON.parse(URI.parse(format(BASE_URL, token:, team_code:)).open.read)
5252
end
5353
end
5454
end

0 commit comments

Comments
 (0)