-
Notifications
You must be signed in to change notification settings - Fork 23
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
Conversation
By merging this pull request, the following pull requests will pass their CI checks :-) |
@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 { |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed: ef898a3
Removed unused function parameters and corrected redundant conditions.