From fb13380b559dcc8ff1d54f0304d3e3075667044c Mon Sep 17 00:00:00 2001 From: Rani Elhusseini Date: Sat, 28 Feb 2026 09:10:06 +0100 Subject: [PATCH] fix: hb_maps:get/3 misuse - Opts as default --- src/dev_location.erl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/dev_location.erl b/src/dev_location.erl index 433a8afab..be56a9cc4 100644 --- a/src/dev_location.erl +++ b/src/dev_location.erl @@ -320,13 +320,13 @@ write_foreign(Base, RawReq, Opts) -> ) orelse {error, <<"Invalid location record type.">>}, true ?= - (hb_maps:get(<<"url">>, MaybeLocation, Opts) =/= not_found) + (hb_maps:get(<<"url">>, MaybeLocation, not_found, Opts) =/= not_found) orelse {error, <<"Missing location record URL.">>}, true ?= - (hb_maps:get(<<"nonce">>, MaybeLocation, Opts) =/= not_found) + (hb_maps:get(<<"nonce">>, MaybeLocation, not_found, Opts) =/= not_found) orelse {error, <<"Missing location record nonce.">>}, true ?= - (hb_maps:get(<<"time-to-live">>, MaybeLocation, Opts) =/= not_found) + (hb_maps:get(<<"time-to-live">>, MaybeLocation, not_found, Opts) =/= not_found) orelse {error, <<"Missing location record time-to-live.">>}, Nonce = hb_util:int(hb_ao:get(<<"nonce">>, MaybeLocation, 0, Opts)), SignerChecks =