summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-05-24 10:25:32 +0300
committerPaul Buetow <paul@buetow.org>2026-05-24 10:25:32 +0300
commitf8147b44f2888ac150659dced719813f0641fc3c (patch)
tree65019fb70a273c6acc91b001207df406fd987fd1 /docs
parentff836d0d287ef1378fb36f68037e7725a661cf7a (diff)
rpn: revert resolveMetric and helpers to single return values
resolveMetric was changed from returning *Metric to (*Metric, error) but the error path only fires when Cool is missing from the registry, which is an impossible runtime state (previously a panic). This added ~90 lines of boilerplate error handling across multiple files. Revert resolveMetric, coolMetric, baseMetric, resultMetricForMul, resultMetricForDiv, compatibleMetric, and convertFromBase to single return values that panic on impossible states. convertToBase retains its error return for reachable error cases (type assertion, Float64).
Diffstat (limited to 'docs')
0 files changed, 0 insertions, 0 deletions