Skip to content

parser: fix unreachable code#4993

Merged
daipom merged 1 commit into
fluent:masterfrom
Watson1978:parser
Jun 4, 2025
Merged

parser: fix unreachable code#4993
daipom merged 1 commit into
fluent:masterfrom
Watson1978:parser

Conversation

@Watson1978

@Watson1978 Watson1978 commented Jun 4, 2025

Copy link
Copy Markdown
Contributor

Which issue(s) this PR fixes:
Fixes #

What this PR does / why we need it:
The codes written after exeption raised will not be executed.

@mutex.synchronize { @map.delete(th) }

@map.delete is definitely executed at above point, so seems changed code might be unnecessary...

Docs Changes:
Not needed.

Release Note:
Code refactoring.

Signed-off-by: Shizuo Fujita <fujita@clear-code.com>
@Watson1978 Watson1978 marked this pull request as ready for review June 4, 2025 06:36
@Watson1978 Watson1978 requested review from daipom and kenhys June 4, 2025 06:36

@kenhys kenhys 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.

LGTM.

@daipom daipom added this to the v1.19.0 milestone Jun 4, 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.

LGTM. Thanks!

It is unlikely to affect users, but it would be better to delete the key before the raise just in case.

@daipom daipom merged commit bee0670 into fluent:master Jun 4, 2025
16 checks passed
@Watson1978 Watson1978 deleted the parser branch July 8, 2025 05:38
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.

3 participants