Closed ulbqb closed 8 months ago
This PR removes unnecessary condition.
Regarding the connection side, the NewSignerListener supports the tcp and unix protocols.
https://github.com/Finschia/ostracon/blob/08c34d4f52caa73faacabcab092b6ad65a35e6c2/privval/utils.go#L29-L53
Therefore, in the context of the if statement, there should not be any instances where the protocol field is empty, indicated by len(protocol) == 0.
len(protocol) == 0
https://github.com/Finschia/ostracon/blob/08c34d4f52caa73faacabcab092b6ad65a35e6c2/privval/signer_listener_endpoint.go#L30-L38
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 66.56%. Comparing base (2aa7d4c) to head (5144c7b). Report is 5 commits behind head on main.
2aa7d4c
5144c7b
Description
This PR removes unnecessary condition.
Issue
Regarding the connection side, the NewSignerListener supports the tcp and unix protocols.
https://github.com/Finschia/ostracon/blob/08c34d4f52caa73faacabcab092b6ad65a35e6c2/privval/utils.go#L29-L53
Therefore, in the context of the if statement, there should not be any instances where the protocol field is empty, indicated by
len(protocol) == 0
.https://github.com/Finschia/ostracon/blob/08c34d4f52caa73faacabcab092b6ad65a35e6c2/privval/signer_listener_endpoint.go#L30-L38