summaryrefslogtreecommitdiff
path: root/docs/basic-arithmetic.md
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-05-24 10:30:33 +0300
committerPaul Buetow <paul@buetow.org>2026-05-24 10:30:33 +0300
commit03136db76ee7b60a3570f6c20c416ae9f53ec3ae (patch)
treeed7fd86b7cd1433dc56497eea7644115eeaf0133 /docs/basic-arithmetic.md
parentc2528014a6c621dca9d46eb70a13db9038e8e5d0 (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