Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: remove unused function parameters and correct redundant conditions #87

Merged
merged 4 commits into from
Oct 4, 2024

Conversation

sho-hata
Copy link
Contributor

@sho-hata sho-hata commented Sep 3, 2024

Removed unused function parameters and corrected redundant conditions.

@sho-hata
Copy link
Contributor Author

sho-hata commented Sep 3, 2024

By merging this pull request, the following pull requests will pass their CI checks :-)

@sho-hata
Copy link
Contributor Author

@alovak Thank you for the review. Another maintainer approve was needed to merge. Could you please inform the maintainer?

connection.go Outdated
@@ -454,7 +454,7 @@ func (c *Connection) Send(message *iso8583.Message, options ...Option) (*iso8583
return resp, err
}

func (c *Connection) writeMessage(w io.Writer, message *iso8583.Message) error {
func (c *Connection) writeMessage(_ io.Writer, message *iso8583.Message) error {
Copy link
Member

Choose a reason for hiding this comment

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

Why is w passed in if it's not used?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thank you for pointing that out. I thought it was necessary to comply with the MessageWriter interface, so I decided that it would be better not to introduce any breaking changes, but that was a mistake. Originally, it seems that the argument w was being passed to WriteMessage, which was being used internally.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed: ef898a3

@alovak alovak merged commit a3abc20 into moov-io:master Oct 4, 2024
3 checks passed
@sho-hata sho-hata deleted the contribute branch October 5, 2024 03:45
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