mirror of
https://github.com/daeuniverse/dae.git
synced 2024-12-22 21:25:01 +07:00
improve: rm dup code in NewFromLink() (#318)
This commit is contained in:
parent
50bdb566d0
commit
371e0c19d1
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user