Browse Source

Remove redundant branching

No reason to use an else statement and branch the code since the
previous if always returns and exits the function call anyway.
pull/9/head
George Vlahavas 8 years ago
parent
commit
ca4ad660bc
  1. 2
      src/xdgmenumaker

2
src/xdgmenumaker

@ -283,7 +283,6 @@ def icon_max_size(icon):
return None
if img.size[0] <= iconsize:
return icon
else:
return None
@ -299,7 +298,6 @@ def icon_full_path(icon):
return icon_max_size(icon)
else:
return icon
else:
icon = icon_strip(icon)
icon_theme = gtk.icon_theme_get_default()
icon = icon_theme.lookup_icon(icon, iconsize, gtk.ICON_LOOKUP_NO_SVG)

Loading…
Cancel
Save