From b1c34effb6d626aead9028258c67ff7afda0831e Mon Sep 17 00:00:00 2001 From: Benjamin Drung Date: Fri, 9 May 2014 23:29:23 +0200 Subject: Simplify boolean oparation. --- dh_xul-ext | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/dh_xul-ext b/dh_xul-ext index 5a034ef..221135b 100755 --- a/dh_xul-ext +++ b/dh_xul-ext @@ -58,10 +58,8 @@ class XulApp(object): Firefox/Iceweasel 10 and Thunderbird/Icedove 10 defaults add-ons to compatible.""" - if (self.xul_id in (FIREFOX_ID, THUNDERBIRD_ID) and - compare_versions(self.max_version, "10") >= 0): - return True - return False + return(self.xul_id in (FIREFOX_ID, THUNDERBIRD_ID) and + compare_versions(self.max_version, "10") >= 0) def get_breaks(self): """Return a string for ${xpi:Breaks} for the XUL application.""" -- cgit v1.2.3