mirror of
https://github.com/daeuniverse/dae.git
synced 2025-07-12 16:59:38 +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
|
p.Name = overwrittenName
|
||||||
}
|
}
|
||||||
node := NewDialer(d, gOption, iOption, p)
|
node := NewDialer(d, gOption, iOption, p)
|
||||||
// Overwrite node name using user given tag.
|
|
||||||
if overwrittenName != "" {
|
|
||||||
node.property.Name = overwrittenName
|
|
||||||
}
|
|
||||||
return node, nil
|
return node, nil
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user