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 return nil, err
} }
edgeHalf := &StmtEdgeHalf{ return &StmtEdgeHalf{
Kind: obj.Kind, Kind: obj.Kind,
Name: name, Name: name,
SendRecv: obj.SendRecv, SendRecv: obj.SendRecv,
} }, nil
return edgeHalf, nil
} }
// SetScope stores the scope for later use in this resource and it's children, // SetScope stores the scope for later use in this resource and it's children,