Closed khos2ow closed 5 years ago
@pdube @franzpgarcia I agree with both of you and basically added _ = fmt.Errorf
to make linter happy, and asides from Pat's suggestion we can also ignore them on lint level. Both approaches seem good to me. Do you have any preferences between the two?
I would prefer to not have any lint ignores
According to another provider as an example we might want to do something like this:
if err := d.Set("foo", foo); err != nil {
return fmt.Errorf("Error reading Trigger: %s", err)
}
@pdube @franzpgarcia this should be good now.
Fixes lint issues: