We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eae796b commit e122ea0Copy full SHA for e122ea0
1 file changed
lib/baseballbot/templates/components/pick_the_stick.rb
@@ -41,14 +41,14 @@ def rows
41
end
42
43
def pick_the_stick_data
44
- api_token = ENV.fetch('BASEBALLBOT_PTS_TOKEN', nil)
+ token = ENV.fetch('BASEBALLBOT_PTS_TOKEN', nil)
45
team_code = @subreddit.team.code
46
47
- raise 'API token is required' unless api_token && !api_token.empty?
+ raise 'API token is required' unless token && !token.empty?
48
49
raise 'Team code is required' if team_code.nil? || team_code.empty?
50
51
- JSON.parse(URI.parse(format(BASE_URL, api_token:, team_code:)).open.read)
+ JSON.parse(URI.parse(format(BASE_URL, token:, team_code:)).open.read)
52
53
54
0 commit comments