Skip to content

Commit

Permalink
fix: poetry NPE panic
Browse files Browse the repository at this point in the history
  • Loading branch information
iseki0 committed Jun 15, 2022
1 parent 9473c3f commit d3f5c78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion module/poetry/poetry.go
Original file line number Diff line number Diff line change
Expand Up @@ -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]}
}
Expand Down

0 comments on commit d3f5c78

Please sign in to comment.