From 60a9e7decbf6e33742f3aa440e743a9aeca4413e Mon Sep 17 00:00:00 2001 From: Jimmy Berry Date: Fri, 16 Mar 2018 14:21:41 -0500 Subject: [PATCH] check_source: make use of ReviewBot request_default_return. --- check_source.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/check_source.py b/check_source.py index e3b453d2..51f0a070 100755 --- a/check_source.py +++ b/check_source.py @@ -28,6 +28,7 @@ class CheckSource(ReviewBot.ReviewBot): # ReviewBot options. self.only_one_action = True + self.request_default_return = True self.maintbot = MaintenanceChecker(*args, **kwargs) @@ -274,10 +275,6 @@ class CheckSource(ReviewBot.ReviewBot): self.review_messages['declined'] = "This is an incorrect request, it's a linked package to %s/%s" % (linked_project, linked_package) return False - def check_action__default(self, request, action): - self.review_messages['accepted'] = 'Unhandled request type %s.' % (action.type) - return True - class CommandLineInterface(ReviewBot.CommandLineInterface): def __init__(self, *args, **kwargs):