Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Null annotate PackageDependencyInfo #5311

Merged
merged 2 commits into from
Jul 19, 2023

Conversation

drewnoakes
Copy link
Contributor

@drewnoakes drewnoakes commented Jul 12, 2023

Bug

Fixes: NuGet/Home#12763

Regression? no

Description

I had annotated this locally as part of some other work then realised I didn't need it for that. Rather than throw away that work, I'm pushing it here.

PR Checklist

  • PR has a meaningful title

  • PR has a linked issue.

  • Described changes

  • Tests

    • Automated tests added
    • OR
    • Test exception: no code changes
    • OR
    • N/A
  • Documentation

    • Documentation PR or issue filled
    • OR
    • N/A

Also add a word to the spelling exclusion list.
@drewnoakes drewnoakes requested a review from a team as a code owner July 12, 2023 11:54
{
get { return _dependencies; }
}
public IEnumerable<PackageDependency> Dependencies => _dependencies;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: This can just be a property correct? Or is there somewhere in the class where we use the fact that _dependencies is an array/

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Made it into an auto property.

@nkolev92 nkolev92 added the Community PRs created by someone not in the NuGet team label Jul 14, 2023
@aortiz-msft
Copy link
Contributor

@zivkan - Would you please take a look since you worked on the same on a different project?

@zivkan zivkan self-assigned this Jul 19, 2023
@zivkan
Copy link
Member

zivkan commented Jul 19, 2023

I updated the checklist to comply with our contribution guidelines.

@zivkan zivkan merged commit a59614a into dev Jul 19, 2023
@zivkan zivkan deleted the dev-drnoakes-annotate-PackageDependencyInfo branch July 19, 2023 10:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Community PRs created by someone not in the NuGet team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

NuGet Client SDK null annotations in 6.8
4 participants