lang: Simplify struct interpolation

Cleaner code, nothing fancy.
This commit is contained in:
James Shubin
2018-06-12 17:38:53 -04:00
parent 8019b90b8a
commit 70ccb3022a

View File

@@ -919,12 +919,11 @@ func (obj *StmtEdgeHalf) Interpolate() (*StmtEdgeHalf, error) {
return nil, err
}
edgeHalf := &StmtEdgeHalf{
return &StmtEdgeHalf{
Kind: obj.Kind,
Name: name,
SendRecv: obj.SendRecv,
}
return edgeHalf, nil
}, nil
}
// SetScope stores the scope for later use in this resource and it's children,