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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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
}