Skip to content

Commit

Permalink
[eclipse-kanto#44] Fix a golint issue: remove the new lines at the en…
Browse files Browse the repository at this point in the history
…d of errors

Signed-off-by: Dimiter Georgiev <dimiter.georgiev@bosch.io>
  • Loading branch information
Dimiter Georgiev authored and e-grigorov committed Nov 25, 2022
1 parent 63c2451 commit b4da575
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions integration/connector_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ func (suite *ConnectorSuite) TestCommand() {
if msg.Path == fmt.Sprintf("/features/%s/inbox/messages/%s", featureID, commandName) {
value, ok := msg.Value.(string)
if !ok {
commandResponseCh <- fmt.Errorf("unexpected message payload: %v, %T\n", msg.Value, msg.Value)
commandResponseCh <- fmt.Errorf("unexpected message payload: %v, %T", msg.Value, msg.Value)
return
}
responsePayload := fmt.Sprintf(responsePayloadTemplate, value)
Expand All @@ -233,7 +233,7 @@ func (suite *ConnectorSuite) TestCommand() {
WithValue(responsePayload).
WithStatus(http.StatusOK)
if err := suite.dittoClient.Reply(requestID, responseMsg); err != nil {
commandResponseCh <- fmt.Errorf("failed to send response: %v\n", err)
commandResponseCh <- fmt.Errorf("failed to send response: %v", err)
return
}
commandResponseCh <- nil
Expand Down

0 comments on commit b4da575

Please sign in to comment.