Skip to content

Conversation

@y-yagi
Copy link
Contributor

@y-yagi y-yagi commented Jun 11, 2023

Since Ruby 2.7, a double splat with an empty hash passes no arguments. So if an argument is an empty hash we should avoid it.
Ref: https://www.ruby-lang.org/en/news/2019/12/12/separation-of-positional-and-keyword-arguments-in-ruby-3-0/#other-minor-changes-empty-hash

Fix #829.

@y-yagi
Copy link
Contributor Author

y-yagi commented Jun 11, 2023

Hmm. Do I need a refactoring in this case?

Since Ruby 2.7, a double splat with an empty hash passes no arguments.
So if an argument is an empty hash we should avoid it.
Ref: https://www.ruby-lang.org/en/news/2019/12/12/separation-of-positional-and-keyword-arguments-in-ruby-3-0/#other-minor-changes-empty-hash

Fix aasm#829.
@qlty-cloud-legacy
Copy link

Code Climate has analyzed commit 59e1ee3 and detected 1 issue on this pull request.

Here's the issue category breakdown:

Category Count
Complexity 1

View more on Code Climate.

@codecov-commenter
Copy link

codecov-commenter commented Jun 10, 2025

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 95.44%. Comparing base (666ef70) to head (59e1ee3).
Report is 49 commits behind head on master.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #833      +/-   ##
==========================================
- Coverage   95.45%   95.44%   -0.02%     
==========================================
  Files          35       35              
  Lines        1277     1274       -3     
==========================================
- Hits         1219     1216       -3     
  Misses         58       58              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@y-yagi
Copy link
Contributor Author

y-yagi commented Jun 10, 2025

I have rebased with the master.

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.

Can't pass an empty hash as callback parameters to transition_from since 5.5.0

2 participants