diff --git a/nftables_test.go b/nftables_test.go index 51c6cd1..1fe24f6 100644 --- a/nftables_test.go +++ b/nftables_test.go @@ -1426,7 +1426,7 @@ func TestObjAPI(t *testing.T) { } legacy, err := c.GetObj(counter1) - + if err != nil { t.Errorf("c.GetObj(counter1) failed: %v failed", err) } diff --git a/obj.go b/obj.go index 4ee09ba..223d910 100644 --- a/obj.go +++ b/obj.go @@ -66,7 +66,6 @@ func (cc *Conn) GetObjReset(o Obj) ([]Obj, error) { return cc.getObj(nil, o.table(), unix.NFT_MSG_GETOBJ_RESET) } - // GetObject gets the specified Object func (cc *Conn) GetObject(o Obj) (Obj, error) { objs, err := cc.getObj(o, o.table(), unix.NFT_MSG_GETOBJ)