Skip to content

Commit a0d6818

Browse files
authored
Fix bug in GitHub api rate limit check (#1821)
Fix buggy code
1 parent 52737e0 commit a0d6818

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/models/github_integration.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,8 @@ def self.check_github_authorization
134134
begin
135135
limit = client.rate_limit!
136136
rescue StandardError
137-
limit = { limit: 0 }
137+
limit = ActiveSupport::OrderedOptions.new
138+
limit.limit = 0
138139
end
139140
limit
140141
end

0 commit comments

Comments
 (0)