diff --git a/diag/diagnostics.go b/diag/diagnostics.go index 3cd99cbf8..5b842cb2b 100644 --- a/diag/diagnostics.go +++ b/diag/diagnostics.go @@ -43,12 +43,7 @@ func (diags *Diagnostics) Append(in ...Diagnostic) { if diags.Contains(diag) { continue } - - if diags == nil { - *diags = Diagnostics{diag} - } else { - *diags = append(*diags, diag) - } + *diags = append(*diags, diag) } }