diff options
author | Andrea Barberio <insomniac@slackware.it> | 2019-05-08 09:45:23 +0100 |
---|---|---|
committer | insomniac <insomniacslk@users.noreply.github.com> | 2019-05-08 11:13:30 +0100 |
commit | c781bfa866afb5cac93f2fcbb5ef9da53a486087 (patch) | |
tree | 8a238ffd60198cd2e5639e4a95ddbdb9068d3f3f /dhcpv6/ztpv6 | |
parent | 2ecf202a098f82731efe88ed625a463913309124 (diff) |
Addressed various linter warnings
Mostly for dead code and potentially wrong comparisons.
Signed-off-by: Andrea Barberio <insomniac@slackware.it>
Diffstat (limited to 'dhcpv6/ztpv6')
-rw-r--r-- | dhcpv6/ztpv6/parse_remote_id_test.go | 1 | ||||
-rw-r--r-- | dhcpv6/ztpv6/parse_vendor_options_test.go | 8 |
2 files changed, 4 insertions, 5 deletions
diff --git a/dhcpv6/ztpv6/parse_remote_id_test.go b/dhcpv6/ztpv6/parse_remote_id_test.go index 54fccc9..3f4c02e 100644 --- a/dhcpv6/ztpv6/parse_remote_id_test.go +++ b/dhcpv6/ztpv6/parse_remote_id_test.go @@ -36,7 +36,6 @@ func TestFormatCircuitID(t *testing.T) { name string circuit *CircuitID want string - fail bool }{ {name: "empty", circuit: &CircuitID{}, want: ",,,,"}, {name: "Arista format Port/Vlan", circuit: &CircuitID{Port: "13", Vlan: "2001"}, want: ",,13,,2001"}, diff --git a/dhcpv6/ztpv6/parse_vendor_options_test.go b/dhcpv6/ztpv6/parse_vendor_options_test.go index a494fac..083866c 100644 --- a/dhcpv6/ztpv6/parse_vendor_options_test.go +++ b/dhcpv6/ztpv6/parse_vendor_options_test.go @@ -9,10 +9,10 @@ import ( func TestParseVendorData(t *testing.T) { tt := []struct { - name string - vc, hostname string - want *VendorData - fail bool + name string + vc string + want *VendorData + fail bool }{ {name: "empty", fail: true}, {name: "unknownVendor", vc: "VendorX;BFR10K;XX12345", fail: true, want: nil}, |