Slightly simplify CompletionModel.new_item.

There was no need to have a branch based on whether the misc value was None or
not.
This commit is contained in:
Ryan Roden-Corrent 2017-02-12 08:36:50 -05:00
parent 93f8984987
commit d4f2a70f83

View File

@ -79,10 +79,7 @@ class CompletionModel(QStandardItemModel):
nameitem = QStandardItem(name)
descitem = QStandardItem(desc)
if misc is None:
miscitem = QStandardItem()
else:
miscitem = QStandardItem(misc)
miscitem = QStandardItem(misc)
cat.appendRow([nameitem, descitem, miscitem])