Remove unnecessary check
This commit is contained in:
parent
27e520971f
commit
e0ad412f1d
|
@ -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