[meld] gutterrendererchunk: Dodge some unnecessary None logic



commit fb1f98d9ce99e98fe5d7bfae33d08a90f235dd56
Author: Kai Willadsen <kai willadsen gmail com>
Date:   Sun Oct 2 08:30:25 2016 +1000

    gutterrendererchunk: Dodge some unnecessary None logic

 meld/gutterrendererchunk.py |    6 +-----
 1 files changed, 1 insertions(+), 5 deletions(-)
---
diff --git a/meld/gutterrendererchunk.py b/meld/gutterrendererchunk.py
index a01549e..26645b6 100644
--- a/meld/gutterrendererchunk.py
+++ b/meld/gutterrendererchunk.py
@@ -198,11 +198,7 @@ class GutterRendererChunkAction(
             background_set, background_rgba = (
                 stylecontext.lookup_color('theme_bg_color'))
         self.set_background(background_rgba)
-
-        if pixbuf:
-            self.set_pixbuf(pixbuf)
-        else:
-            self.props.pixbuf = None
+        self.props.pixbuf = pixbuf
 
     def on_container_mode_changed(self, container, mode):
         self.mode = mode


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]