Skip to content

Commit

Permalink
fixed a minor bug of only default quota defined
Browse files Browse the repository at this point in the history
  • Loading branch information
Athishpranav2003 committed Jul 13, 2024
1 parent 00e8711 commit a2f7a58
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/fluent/plugin/matcher.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ def get_quota(record)

max_score = 0
quota_to_return = @default_quota
if @quotas.nil?
return @default_quota
end
@quotas.each do |quota|
score = matching_score(quota.match_by, record)
if score > max_score
Expand Down

0 comments on commit a2f7a58

Please sign in to comment.