Skip to content

Commit

Permalink
Remove unnecessary conversion to str
Browse files Browse the repository at this point in the history
Co-authored-by: David López <[email protected]>
  • Loading branch information
nsoranzo and davelopez authored Mar 6, 2024
1 parent 0315ab9 commit 9bf60ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/galaxy/job_metrics/formatting.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class JobMetricFormatter:
"""Format job metric key-value pairs for human consumption in Web UI."""

def format(self, key: str, value: Any) -> FormattedMetric:
return FormattedMetric(str(key), str(value))
return FormattedMetric(key, str(value))


def seconds_to_str(value: int) -> str:
Expand Down

0 comments on commit 9bf60ec

Please sign in to comment.