Closed odashi closed 2 years ago
This introduces following changes:
MetricResult.get_value
MetricValue
MetricValue | None
MetricResult.get_value_or_none
In most cases get_value was used with unwrap, which increases the complexity of the code. This change mitigates some burden with keeping availability to obtain optional MetricValues.
get_value
unwrap
This introduces following changes:
MetricResult.get_value
: returnsMetricValue
(originallyMetricValue | None
)MetricResult.get_value_or_none
: returnsMetricValue | None
In most cases
get_value
was used withunwrap
, which increases the complexity of the code. This change mitigates some burden with keeping availability to obtain optional MetricValues.