flame: removing constant True return

This commit is contained in:
Jakub Jezek 2022-01-11 17:34:02 +01:00
parent 66cedb61e9
commit c025d4c8e4
No known key found for this signature in database
GPG key ID: D8548FBF690B100A
2 changed files with 2 additions and 6 deletions

View file

@ -374,8 +374,6 @@ def set_segment_data_marker(segment, data=None):
# add tag data to marker's comment
marker.comment = json.dumps(data)
return True
def set_publish_attribute(segment, value):
""" Set Publish attribute in input Tag object
@ -388,8 +386,7 @@ def set_publish_attribute(segment, value):
tag_data["publish"] = value
# set data to the publish attribute
if not set_segment_data_marker(segment, tag_data):
raise AttributeError("Not imprint data to segment")
set_segment_data_marker(segment, tag_data)
def get_publish_attribute(segment):

View file

@ -144,8 +144,7 @@ def imprint(segment, data=None):
"""
data = data or {}
if not set_segment_data_marker(segment, data):
raise AttributeError("Not imprint data to segment")
set_segment_data_marker(segment, data)
# add publish attribute
set_publish_attribute(segment, True)