Skip to content

Commit

Permalink
fix: delete unnecessary interface
Browse files Browse the repository at this point in the history
Signed-off-by: 170210 <j170210@icloud.com>
  • Loading branch information
170210 committed Mar 15, 2024
1 parent 5a08c04 commit 4ca0270
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
4 changes: 0 additions & 4 deletions privval/internal/null_object_filter.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,3 @@ func NewNullObject() *NullObject {
func (n NullObject) Filter(addr net.Addr) net.Addr {
return addr
}

func (n NullObject) String() string {
return "NullObject"
}
5 changes: 0 additions & 5 deletions privval/internal/null_object_filter_test.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package internal

import (
"github.com/stretchr/testify/assert"
"net"
"reflect"
"testing"
Expand Down Expand Up @@ -34,7 +33,3 @@ func TestNullObject_filter(t *testing.T) {
})
}
}

func TestNullObjectString(t *testing.T) {
assert.Equal(t, "NullObject", NewNullObject().String())
}

0 comments on commit 4ca0270

Please sign in to comment.