From e0ad412f1d42aad3ea3882e70efea32bc4870456 Mon Sep 17 00:00:00 2001 From: Paul Banks Date: Wed, 25 Aug 2021 11:22:30 +0100 Subject: [PATCH] Remove unnecessary check --- agent/structs/config_entry_discoverychain.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/agent/structs/config_entry_discoverychain.go b/agent/structs/config_entry_discoverychain.go index 4af2fecd2..7c95b23bc 100644 --- a/agent/structs/config_entry_discoverychain.go +++ b/agent/structs/config_entry_discoverychain.go @@ -1498,10 +1498,6 @@ func (m *HTTPHeaderModifiers) IsZero() bool { } func (m *HTTPHeaderModifiers) Validate(protocol string) error { - if m == nil { - // Empty is always valid - return nil - } if m.IsZero() { return nil }