Catch a missing assign-after-append

I believe this is a slice append under the hood, which would mean `.Append()`
consumes the original receiver and you shouldn't touch it afterwards.
pull/34447/head
Nick Fagerlund 2 years ago
parent 7a1c49c61d
commit c398d0340f

@ -205,7 +205,7 @@ func (c *CloudCommand) initPlugin() tfdiags.Diagnostics {
defer done()
// Discover service URLs, and build out the plugin config
diags.Append(c.discoverAndConfigure())
diags = diags.Append(c.discoverAndConfigure())
if diags.HasErrors() {
return diags
}

Loading…
Cancel
Save