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

capi: Random minor simplifications #699

Merged
merged 2 commits into from
Jan 27, 2021
Merged

capi: Random minor simplifications #699

merged 2 commits into from
Jan 27, 2021

Conversation

gumb0
Copy link
Collaborator

@gumb0 gumb0 commented Jan 27, 2021

One commit from #660 and one commit from #694

imported_func.module =
c_imported_func.module ? std::string{c_imported_func.module} : std::string{};
imported_func.name = c_imported_func.name ? std::string{c_imported_func.name} : std::string{};
imported_func.module = c_imported_func.module;
Copy link
Member

Choose a reason for hiding this comment

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

https://stackoverflow.com/a/10771938

But we require module and name to be non-null, right?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Right, that's why it was unnecessary check.

@codecov
Copy link

codecov bot commented Jan 27, 2021

Codecov Report

Merging #699 (5f14d14) into master (48c2b50) will decrease coverage by 0.00%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master     #699      +/-   ##
==========================================
- Coverage   99.31%   99.31%   -0.01%     
==========================================
  Files          72       72              
  Lines       10542    10541       -1     
==========================================
- Hits        10470    10469       -1     
  Misses         72       72              
Flag Coverage Δ
spectests 90.84% <ø> (ø)
unittests 99.31% <100.00%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
lib/fizzy/capi.cpp 98.86% <100.00%> (-0.01%) ⬇️

@gumb0 gumb0 merged commit c38917f into master Jan 27, 2021
@gumb0 gumb0 deleted the capi-simplify branch January 27, 2021 18:27
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.

2 participants