commit: 18a4ab9ac73695a7e55bc4b17b428967629f5104
Author: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
AuthorDate: Sat Feb 10 05:30:18 2024 +0000
Commit: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
CommitDate: Sat Feb 10 05:30:18 2024 +0000
URL: https://gitweb.gentoo.org/proj/rbot-bugzilla.git/commit/?id=18a4ab9a
fix: cannot compare string and int
Signed-off-by: Robin H. Johnson <robbat2 <AT> gentoo.org>
bugzilla.rb | 4 ++--
1 file 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