Skip to content

Commit

Permalink
flake8 tiny complaints
Browse files Browse the repository at this point in the history
  • Loading branch information
stuartlangridge authored and flexiondotorg committed Jun 6, 2019
1 parent 26f3f08 commit 34c7f63
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions magnus
Original file line number Diff line number Diff line change
Expand Up @@ -121,14 +121,16 @@ class Main(object):

def zoom_out(self, keypress, zoom):
current_index = zoom.get_active()
if current_index == 0: return
if current_index == 0:
return
zoom.set_active(current_index - 1)
self.set_zoom(zoom)

def zoom_in(self, keypress, zoom):
current_index = zoom.get_active()
size = zoom.get_model().iter_n_children(None)
if current_index == size - 1: return
if current_index == size - 1:
return
zoom.set_active(current_index + 1)
self.set_zoom(zoom)

Expand Down

0 comments on commit 34c7f63

Please sign in to comment.