From b04f1416f603f9f727dd921092feb82e47d6348b Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Fri, 23 Sep 2022 22:34:10 +0200 Subject: [PATCH] opts: fix empty-lines (revive) opts/address_pools_test.go:7:39: empty-lines: extra empty line at the end of a block (revive) opts/opts_test.go:12:42: empty-lines: extra empty line at the end of a block (revive) opts/opts_test.go:60:49: empty-lines: extra empty line at the end of a block (revive) opts/opts_test.go:253:37: empty-lines: extra empty line at the end of a block (revive) Signed-off-by: Sebastiaan van Stijn --- opts/address_pools_test.go | 1 - opts/opts_test.go | 3 --- 2 files changed, 4 deletions(-) diff --git a/opts/address_pools_test.go b/opts/address_pools_test.go index 7f9c709968..625ae1e18d 100644 --- a/opts/address_pools_test.go +++ b/opts/address_pools_test.go @@ -16,5 +16,4 @@ func TestAddressPoolOpt(t *testing.T) { if err := poolopt.Set(invalidAddresspoolString); err == nil { t.Fatal(err) } - } diff --git a/opts/opts_test.go b/opts/opts_test.go index 2249cc1054..26ab4b3463 100644 --- a/opts/opts_test.go +++ b/opts/opts_test.go @@ -29,7 +29,6 @@ func TestValidateIPAddress(t *testing.T) { if ret, err := ValidateIPAddress(`random invalid string`); err == nil || ret != "" { t.Fatalf("ValidateIPAddress(`random invalid string`) got %s %s", ret, err) } - } func TestMapOpts(t *testing.T) { @@ -89,7 +88,6 @@ func TestListOptsWithoutValidator(t *testing.T) { if len(mapListOpts) != 1 { t.Errorf("Expected [map[bar:{}]], got [%v]", mapListOpts) } - } func TestListOptsWithValidator(t *testing.T) { @@ -264,7 +262,6 @@ func TestValidateLabel(t *testing.T) { assert.Check(t, is.Equal(result, testCase.expectedResult)) } }) - } }