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

Initial integration of Charity Commission API. #940

Merged
merged 6 commits into from
Nov 22, 2024

Conversation

dbgoaco
Copy link
Collaborator

@dbgoaco dbgoaco commented Nov 14, 2024


if ((RegistrationDetails.OrganisationScheme == OrganisationSchemeType.CharityCommissionEnglandWales) && (string.IsNullOrEmpty(EmailAddress)))
{
var details = await charityCommissionApi.GetCharityDetails(RegistrationDetails.OrganisationIdentificationNumber!);
Copy link
Member

@jakzal jakzal Nov 21, 2024

Choose a reason for hiding this comment

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

Rather than causing a potential runtime exception with !, can we move the check to the condition above to ensure RegistrationDetails.OrganisationIdentificationNumber != null please?

This will make ! redundant. Noticed the same thing in other places.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Done.

@dbgoaco dbgoaco merged commit 8d56d60 into main Nov 22, 2024
8 checks passed
@dharmverma dharmverma deleted the DP-867-Charity-Commission-API branch November 28, 2024 13:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants