Skip to content

Commit

Permalink
fix(tools): fix panic when missing tools config
Browse files Browse the repository at this point in the history
  • Loading branch information
ImSingee committed Oct 13, 2023
1 parent 159bfdb commit cb842d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/tools/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ func (o *listOptions) getCurrentToolsMap() (map[string]string, error) {

tools_ := c["tools"].Val()
if tools_ == nil {
return nil, nil
return map[string]string{}, nil
}
tools, ok := tools_.(map[string]any)
if !ok {
Expand Down

0 comments on commit cb842d0

Please sign in to comment.