Skip to content

Commit

Permalink
fix(database/gdb): initialize node.Link to an empty string in `pars…
Browse files Browse the repository at this point in the history
…eConfigNodeLink` function for consistent handling of link configurations
  • Loading branch information
陈翔宇 committed Jan 14, 2025
1 parent e0f7348 commit 5c63569
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions database/gdb/gdb_core_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -421,6 +421,7 @@ func parseConfigNodeLink(node *ConfigNode) (*ConfigNode, error) {
if len(match) > 6 && match[7] != "" {
node.Extra = match[7]
}
node.Link = ""
}
if node.Extra != "" {
if m, _ := gstr.Parse(node.Extra); len(m) > 0 {
Expand Down

0 comments on commit 5c63569

Please sign in to comment.