Skip to content
This repository has been archived by the owner on Apr 10, 2024. It is now read-only.

Fix all_success? method for use in the ci:run task #79

Merged
merged 2 commits into from
Jan 13, 2022

Conversation

jleeman-mdsol
Copy link
Contributor

No description provided.

Copy link
Contributor

@ykitamura-mdsol ykitamura-mdsol left a comment

Choose a reason for hiding this comment

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

good catch!

@@ -24,7 +24,7 @@ def run
class << self

def all_success?
all.inject(true) {|all_result, command_result| all_result && command_result }
all.inject(true) {|all_result, command_result| all_result && command_result.success }
Copy link
Contributor

Choose a reason for hiding this comment

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

how about

Suggested change
all.inject(true) {|all_result, command_result| all_result && command_result.success }
all.all?(&:success)

?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Actually yea, much cleaner!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@jcarres-mdsol
Copy link
Contributor

We would need to update the changelog and the version also

@jleeman-mdsol
Copy link
Contributor Author

Thanks guys, added Yohei's much cleaner fix, and CHANGELOG/version change requested by Jordi.

@jcarres-mdsol jcarres-mdsol merged commit a6892a4 into master Jan 13, 2022
@jcarres-mdsol jcarres-mdsol deleted the fix_all_success_method branch January 13, 2022 16:52
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants