Skip to content

Commit

Permalink
Fixes sonar qube error in config_test.go.
Browse files Browse the repository at this point in the history
  • Loading branch information
chr-fritz committed Aug 30, 2023
1 parent a458356 commit 8753991
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/knx/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
package knx

import (
"fmt"
"net"
"testing"
"time"
Expand Down Expand Up @@ -188,7 +187,7 @@ func TestRouterConfig_toKnxRouterConfig(t *testing.T) {
PostSendPauseDuration: tt.PostSendPauseDuration,
}
got, err := rc.toKnxRouterConfig()
if !tt.wantErr(t, err, fmt.Sprintf("toKnxRouterConfig()")) {
if !tt.wantErr(t, err, "toKnxRouterConfig()") {
return
}
assert.Equalf(t, tt.want, got, "toKnxRouterConfig()")
Expand Down

0 comments on commit 8753991

Please sign in to comment.