Skip to content

Commit

Permalink
Fix linter error with Go 1.18
Browse files Browse the repository at this point in the history
  • Loading branch information
maraino committed Mar 31, 2022
1 parent d0f52ae commit f1cf702
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions x509util/certpool_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ func TestReadCertPool(t *testing.T) {
return
}
if got != nil {
// noline:staticcheck // there's no other way to compare two
// certpools, https://github.com/golang/go/issues/46057 might
// fix this.
subjects := got.Subjects()
if !reflect.DeepEqual(subjects, tt.wantSubjects) {
t.Errorf("x509.CertPool.Subjects() got = %v, want %v", subjects, tt.wantSubjects)
Expand Down

0 comments on commit f1cf702

Please sign in to comment.