improve: rm dup code in NewFromLink() (#318)

This commit is contained in:
Luo Chen
2023-09-03 17:29:29 +08:00
committed by GitHub
parent 50bdb566d0
commit 371e0c19d1

View File

@ -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
}