Skip to content

OleDbConnectionInternal.BuildInfoLiterals should return non-null #44288

Description

@krwq

This method itself is internal but it affects annotations of couple of public methods.

OleDbConnectionInternal.BuildInfoLiterals code suggests that:

                if (null == dbInfo)
                {
                    return null;
                }

is likely a dead code since dbInfo is annotated as non-nullable which suggests this method will never return null.

Found when applying nullable annotations

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions