diff options
| author | Paul Buetow <paul@buetow.org> | 2026-05-24 10:30:33 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-05-24 10:30:33 +0300 |
| commit | 03136db76ee7b60a3570f6c20c416ae9f53ec3ae (patch) | |
| tree | ed7fd86b7cd1433dc56497eea7644115eeaf0133 /docs/basic-arithmetic.md | |
| parent | c2528014a6c621dca9d46eb70a13db9038e8e5d0 (diff) | |
rpn: use GetCoolMetric() instead of ignored-error Find("Cool")
resultMetricForAdd silently ignored the error from
GetMetricRegistry().Find("Cool"), which could propagate a nil
*Metric if Cool were absent, risking nil pointer dereference.
Replace with GetCoolMetric() which is guaranteed non-nil.
Diffstat (limited to 'docs/basic-arithmetic.md')
0 files changed, 0 insertions, 0 deletions
