engine: resources: Remove named return params
Named return params aren't a favourite feature of mine, and they're rarely used in the resource writing. They keep popping up because I once used them and we've been copying and pasting code ever since. Get rid of them all to help prevent the unnecessary spread.
This commit is contained in:
@@ -82,7 +82,7 @@ func (obj *PrintRes) Watch() error {
|
||||
}
|
||||
|
||||
// CheckApply method for Print resource. Does nothing, returns happy!
|
||||
func (obj *PrintRes) CheckApply(apply bool) (checkOK bool, err error) {
|
||||
func (obj *PrintRes) CheckApply(apply bool) (bool, error) {
|
||||
obj.init.Logf("CheckApply: %t", apply)
|
||||
if val, exists := obj.init.Recv()["Msg"]; exists && val.Changed {
|
||||
// if we received on Msg, and it changed, log message
|
||||
|
||||
Reference in New Issue
Block a user