From f6ef90e3abcb825b7ecd1408924900117e2e9277 Mon Sep 17 00:00:00 2001 From: Alexis PIRES Date: Sat, 18 Jan 2020 19:20:42 +0100 Subject: [PATCH] go fmt --- nftables_test.go | 2 +- obj.go | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) 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)