Skip to content

Use safe navigation operator to clean up the codes#5004

Merged
daipom merged 1 commit into
fluent:masterfrom
Watson1978:safe-navigation-operator
Jun 19, 2025
Merged

Use safe navigation operator to clean up the codes#5004
daipom merged 1 commit into
fluent:masterfrom
Watson1978:safe-navigation-operator

Conversation

@Watson1978

@Watson1978 Watson1978 commented Jun 18, 2025

Copy link
Copy Markdown
Contributor

Which issue(s) this PR fixes:
None.

What this PR does / why we need it:
The safe navigation operator was introduced at Ruby 2.3.

I think it makes the code cleaner.

Docs Changes:
Not needed.

Release Note:
Minor code refactoring

Signed-off-by: Shizuo Fujita <fujita@clear-code.com>
@Watson1978 Watson1978 marked this pull request as ready for review June 19, 2025 02:16
@Watson1978 Watson1978 requested review from daipom and kenhys June 19, 2025 02:16
@daipom daipom added this to the v1.19.0 milestone Jun 19, 2025

@daipom daipom left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks!

@daipom daipom merged commit c5cf521 into fluent:master Jun 19, 2025
38 of 40 checks passed
@Watson1978 Watson1978 deleted the safe-navigation-operator branch June 19, 2025 02:23
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