refactor: remove directive errors comparison (#20344)

This commit is contained in:
Kien Trinh
2024-05-10 19:09:21 +00:00
committed by GitHub
parent 946c62410f
commit 0c91044220
13 changed files with 27 additions and 18 deletions
@@ -34,6 +34,7 @@ package gogoreflection
import (
"bytes"
"compress/gzip"
"errors"
"fmt"
"io"
"log"
@@ -375,7 +376,7 @@ func (s *serverReflectionServer) ServerReflectionInfo(stream rpb.ServerReflectio
sentFileDescriptors := make(map[string]bool)
for {
in, err := stream.Recv()
if err == io.EOF {
if errors.Is(err, io.EOF) {
return nil
}
if err != nil {