mirror of
https://github.com/daeuniverse/dae.git
synced 2025-07-09 07:19:17 +07:00
improve: rm dup code in NewFromLink() (#318)
This commit is contained in:
@ -69,9 +69,5 @@ func NewFromLink(gOption *GlobalOption, iOption InstanceOption, link string) (*D
|
||||
p.Name = overwrittenName
|
||||
}
|
||||
node := NewDialer(d, gOption, iOption, p)
|
||||
// Overwrite node name using user given tag.
|
||||
if overwrittenName != "" {
|
||||
node.property.Name = overwrittenName
|
||||
}
|
||||
return node, nil
|
||||
}
|
||||
|
Reference in New Issue
Block a user