Fixed linting

This commit is contained in:
Mike Farah
2020-11-13 14:07:11 +11:00
parent f8a700e400
commit af39fc737d
18 changed files with 135 additions and 101 deletions
+6 -3
View File
@@ -20,10 +20,13 @@ func (n *CandidateNode) GetKey() string {
return fmt.Sprintf("%v - %v", n.Document, n.Path)
}
func (n *CandidateNode) Copy() *CandidateNode {
func (n *CandidateNode) Copy() (*CandidateNode, error) {
clone := &CandidateNode{}
copier.Copy(clone, n)
return clone
err := copier.Copy(clone, n)
if err != nil {
return nil, err
}
return clone, nil
}
// updates this candidate from the given candidate node