We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d0c497a commit 404feabCopy full SHA for 404feab
mongo/errors.go
@@ -46,6 +46,11 @@ func (e ErrMapForOrderedArgument) Error() string {
46
}
47
48
func replaceErrors(err error) error {
49
+ // Return nil when err is nil to avoid costly reflection logic below.
50
+ if err == nil {
51
+ return nil
52
+ }
53
+
54
if err == topology.ErrTopologyClosed {
55
return ErrClientDisconnected
56
0 commit comments