aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'bugzilla.rb')
-rw-r--r--bugzilla.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/bugzilla.rb b/bugzilla.rb
index ed23915..5000e4a 100644
--- a/bugzilla.rb
+++ b/bugzilla.rb
@@ -214,7 +214,7 @@ class BugzillaPlugin < Plugin
end
def max_announce
- @registry["zilla.#{name}.max_announce"] || 5
+ @registry["zilla.#{name}.max_announce"]&.to_i || 5
end
def max_announce=(val)
@@ -429,7 +429,7 @@ class BugzillaPlugin < Plugin
buglist = search(recent_url)
buglist.delete_at(0)
- upper_bound = [buglist.size, max_announce].min
+ upper_bound = [buglist.size, max_announce&.to_i].min
if (buglist.size > upper_bound)
first_skip = buglist[0][0].to_i