aboutsummaryrefslogtreecommitdiff
path: root/model/types.go
diff options
context:
space:
mode:
Diffstat (limited to 'model/types.go')
-rw-r--r--model/types.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/model/types.go b/model/types.go
index bba7527..72dce5f 100644
--- a/model/types.go
+++ b/model/types.go
@@ -13,6 +13,7 @@ const (
type NodeObjectValue map[string]Node
-func (n NodeObjectValue) Set(k string, v any) {
+func (n NodeObjectValue) Set(k string, v any) error {
n[k] = NewNode(v)
+ return nil
}