debian-koji/hub
Ken Dreyer d7d745295a hub: simplify recipients condition in build_notification()
If get_notification_recipients() returns a non-empty list of recipients,
then the build_notification() method creates a new buildNotification task.

Simplify the conditional that checks the get_notification_recipients()
return value so that it is easier to read. Python treats an empty list
as False and a non-empty list as True, so we don't need to explicitly
test the list length here.

The purpose of this change is to make this code easier to read and
understand.
2020-06-18 15:22:44 +02:00
..
__init__.py add unit test for using profiles in threads 2016-04-11 12:09:28 -04:00
httpd.conf doc: GssapiLocalName should be off 2019-10-10 13:04:06 +00:00
hub.conf hub: remove debugFunction API 2020-01-23 16:27:38 +01:00
kojihub.py hub: simplify recipients condition in build_notification() 2020-06-18 15:22:44 +02:00
kojixmlrpc.py hub: default policy allow packagelist changes with 'tag' permission 2020-06-16 11:04:14 +02:00
Makefile improve test and clean targets in Makefiles 2019-11-27 15:42:30 +01:00