[Pkg-mozext-commits] [mozilla-devscripts] 04/06: Simplify boolean oparation.

Benjamin Drung bdrung at moszumanska.debian.org
Fri May 9 21:48:08 UTC 2014


This is an automated email from the git hooks/post-receive script.

bdrung pushed a commit to branch master
in repository mozilla-devscripts.

commit b1c34effb6d626aead9028258c67ff7afda0831e
Author: Benjamin Drung <bdrung at debian.org>
Date:   Fri May 9 23:29:23 2014 +0200

    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."""

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/mozilla-devscripts.git



More information about the Pkg-mozext-commits mailing list