Commit 724e5a09 authored by Wolfgang Rohdewald's avatar Wolfgang Rohdewald
Browse files

small code simplification

parent 2e1075ea
......@@ -52,7 +52,9 @@ class DifferModel(QAbstractTableModel):
def data(self, index, role=Qt.DisplayRole):
"""get from model"""
if not index.isValid() or not 0 <= index.row() < len(self.diffs):
if not index.isValid():
if not 0 <= index.row() < len(self.diffs):
diff = self.diffs[index.row()]
column = index.column()
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment