mirror of https://github.com/status-im/consul.git
Remove unnecessary check
This commit is contained in:
parent
bcf22e00dc
commit
b5ae00d753
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue