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

880 change Holder::foreach() to return void #993

Merged
merged 1 commit into from
Aug 22, 2020

Conversation

jstrzebonski
Copy link
Contributor

@jstrzebonski jstrzebonski commented Aug 18, 2020

AFAIS returning bool from Holder::foraech(FuncApplyType fn) is redundant. FuncApplyType is returning void, so I don't see how foreach() might return false / failed (except for throwing, but I'm not sure if that's even possible).

Fixes #880

@jstrzebonski jstrzebonski self-assigned this Aug 18, 2020
@jstrzebonski jstrzebonski changed the title #880: change Holder::foreach() to return void 880: change Holder::foreach() to return void Aug 18, 2020
@jstrzebonski jstrzebonski changed the title 880: change Holder::foreach() to return void 880 change Holder::foreach() to return void Aug 18, 2020
@jstrzebonski jstrzebonski linked an issue Aug 18, 2020 that may be closed by this pull request
@codecov
Copy link

codecov bot commented Aug 18, 2020

Codecov Report

Merging #993 into develop will decrease coverage by 0.05%.
The diff coverage is 100.00%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop     #993      +/-   ##
===========================================
- Coverage    77.41%   77.35%   -0.06%     
===========================================
  Files          656      656              
  Lines        25160    25109      -51     
===========================================
- Hits         19477    19424      -53     
- Misses        5683     5685       +2     
Impacted Files Coverage Δ
src/vt/vrt/collection/holders/col_holder.h 100.00% <ø> (ø)
src/vt/vrt/collection/holders/holder.h 100.00% <ø> (ø)
src/vt/vrt/collection/holders/holder.impl.h 86.51% <100.00%> (-0.15%) ⬇️
src/vt/timetrigger/trigger.h 86.66% <0.00%> (-13.34%) ⬇️
src/vt/timetrigger/time_trigger_manager.cc 96.55% <0.00%> (-3.45%) ⬇️
...sts/unit/timetrigger/test_time_trigger.extended.cc 100.00% <0.00%> (ø)
tests/unit/atomic/test_atomic.cc 100.00% <0.00%> (+1.31%) ⬆️

@jstrzebonski jstrzebonski marked this pull request as ready for review August 19, 2020 18:14
Copy link
Contributor

@cz4rs cz4rs left a comment

Choose a reason for hiding this comment

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

Looks good to me 👍

Copy link
Collaborator

@lifflander lifflander left a comment

Choose a reason for hiding this comment

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

Looks good to me. Rebase and let's merge!

@lifflander
Copy link
Collaborator

@jstrzebonski You need to get commit signing with GPG turned on. You can't merge unless Github has your verified signature.

@jstrzebonski jstrzebonski force-pushed the 880-return-void-from-collection-holder-foreach branch 2 times, most recently from b4a31d6 to c738a36 Compare August 19, 2020 20:45
@jstrzebonski
Copy link
Contributor Author

@lifflander Commit is verified and branch is rebased.

@lifflander lifflander force-pushed the 880-return-void-from-collection-holder-foreach branch from c738a36 to 511a5b1 Compare August 20, 2020 17:56
@lifflander lifflander merged commit 2db1ab5 into develop Aug 22, 2020
@jstrzebonski jstrzebonski deleted the 880-return-void-from-collection-holder-foreach branch November 7, 2020 14:58
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.

CollectionHolder foreach should return void
5 participants