diff --git a/module/poetry/poetry.go b/module/poetry/poetry.go index bc6af893..10acc3b8 100644 --- a/module/poetry/poetry.go +++ b/module/poetry/poetry.go @@ -90,7 +90,7 @@ func (t *tomlTree) Get(path ...string) *tomlTree { for _, it := range path { m, ok := cur.v.(map[string]any) if !ok { - return nil + return &tomlTree{} } cur = &tomlTree{m[it]} }