mirror of
https://git.launchpad.net/~ubuntu-release/britney/+git/britney2-ubuntu
synced 2025-05-11 10:31:30 +00:00
Remove redundant if-else - if branch is always true
Signed-off-by: Niels Thykier <niels@thykier.net>
This commit is contained in:
parent
42be17ad26
commit
5f2a84a4f8
@ -97,10 +97,8 @@ class BasePolicy(object):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
def apply_policy(self, general_policy_info, suite, source_name, source_data_tdist, source_data_srcdist, excuse):
|
def apply_policy(self, general_policy_info, suite, source_name, source_data_tdist, source_data_srcdist, excuse):
|
||||||
if self.policy_id not in general_policy_info:
|
pinfo = {}
|
||||||
general_policy_info[self.policy_id] = pinfo = {}
|
general_policy_info[self.policy_id] = pinfo
|
||||||
else:
|
|
||||||
pinfo = general_policy_info[self.policy_id]
|
|
||||||
return self.apply_policy_impl(pinfo, suite, source_name, source_data_tdist, source_data_srcdist, excuse)
|
return self.apply_policy_impl(pinfo, suite, source_name, source_data_tdist, source_data_srcdist, excuse)
|
||||||
|
|
||||||
@abstractmethod
|
@abstractmethod
|
||||||
|
Loading…
x
Reference in New Issue
Block a user