Skip to content

Commit 2ac472a

Browse files
author
jkasiraj
committed
fix: remove no-else-return block in _get_legend_line
1 parent 8d3ca3f commit 2ac472a

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/sagemaker/lineage/query.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -324,14 +324,14 @@ def _get_legend_line(self, component_name):
324324
color=self.graph_styles[component_name]["style"]["background-color"],
325325
name=self.graph_styles[component_name]["name"],
326326
)
327-
else:
328-
return '<div style="background-color: #ffffff; width: 1.6vw; height: 1.6vw;\
329-
display: inline-block; font-size: 0.9vw; vertical-align: -0.2em;">{shape}</div>\
330-
<div style="width: 0.3vw; height: 1.5vw; display: inline-block;"></div>\
331-
<div style="display: inline-block; font-size: 1.5vw;">{name}</div></div>'.format(
332-
shape=self.graph_styles[component_name]["style"]["shape"],
333-
name=self.graph_styles[component_name]["name"],
334-
)
327+
328+
return '<div style="background-color: #ffffff; width: 1.6vw; height: 1.6vw;\
329+
display: inline-block; font-size: 0.9vw; vertical-align: -0.2em;">{shape}</div>\
330+
<div style="width: 0.3vw; height: 1.5vw; display: inline-block;"></div>\
331+
<div style="display: inline-block; font-size: 1.5vw;">{name}</div></div>'.format(
332+
shape=self.graph_styles[component_name]["style"]["shape"],
333+
name=self.graph_styles[component_name]["name"],
334+
)
335335

336336
def _add_legend(self, path):
337337
"""Embed legend to html file generated by pyvis."""

0 commit comments

Comments
 (0)