trivial: fix assignment-from-no-return pylint warning (#52732)
This commit is contained in:
parent
575a06e6d2
commit
1a611d0ce7
|
@ -8,7 +8,6 @@ cache-size=500
|
|||
disable=
|
||||
abstract-method,
|
||||
arguments-differ,
|
||||
assignment-from-no-return,
|
||||
attribute-defined-outside-init,
|
||||
broad-except,
|
||||
consider-using-dict-comprehension,
|
||||
|
|
|
@ -405,7 +405,7 @@ class FormDef(StorableObject):
|
|||
# or if there are not yet any submitted forms
|
||||
if self.id is None or self.data_class().count() == 0:
|
||||
self.internal_identifier = new_internal_identifier
|
||||
t = StorableObject.store(self)
|
||||
StorableObject.store(self)
|
||||
if get_publisher().snapshot_class:
|
||||
get_publisher().snapshot_class.snap(instance=self, comment=comment)
|
||||
if get_publisher().is_using_postgresql():
|
||||
|
@ -413,7 +413,6 @@ class FormDef(StorableObject):
|
|||
|
||||
sql.do_formdef_tables(self, rebuild_views=True, rebuild_global_views=True)
|
||||
self.store_related_custom_views()
|
||||
return t
|
||||
|
||||
def store_related_custom_views(self):
|
||||
for view in getattr(self, '_custom_views', []):
|
||||
|
|
Loading…
Reference in New Issue