Skip to content

[5.3] Remove useless return statement#44820

Merged
laoneo merged 1 commit intojoomla:5.3-devfrom
joomdonation:remove_useless_return_command
Feb 5, 2025
Merged

[5.3] Remove useless return statement#44820
laoneo merged 1 commit intojoomla:5.3-devfrom
joomdonation:remove_useless_return_command

Conversation

@joomdonation
Copy link
Contributor

Pull Request for Issue # .

Summary of Changes

Follow up for the merged PR #43427 . Remove the return true; statement because the method should have void return type

Testing Instructions

Can be merged by review as discussed in the PR. Ping @laoneo

Actual result BEFORE applying this Pull Request

Works

Expected result AFTER applying this Pull Request

Works

Copy link
Member

@laoneo laoneo left a comment

Choose a reason for hiding this comment

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

Should we not just return here?

@joomdonation
Copy link
Contributor Author

Should we not just return here?

No, this statement is at the end of method, so adding return; here is useless.

@laoneo
Copy link
Member

laoneo commented Feb 5, 2025

Ah now I see it, thought it is at the end of an "if" block.

@laoneo laoneo merged commit 4621c14 into joomla:5.3-dev Feb 5, 2025
2 of 3 checks passed
@laoneo
Copy link
Member

laoneo commented Feb 5, 2025

Thanks!

@joomdonation
Copy link
Contributor Author

Thanks !

@joomdonation joomdonation deleted the remove_useless_return_command branch February 5, 2025 08:07
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

Comments