Skip to content

Commit

Permalink
diag: remove incorrect code (#935)
Browse files Browse the repository at this point in the history
  • Loading branch information
jxsl13 authored Feb 28, 2024
1 parent f35653e commit 87c1b41
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions diag/diagnostics.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}

Expand Down

0 comments on commit 87c1b41

Please sign in to comment.