Remove unnecessary check

This commit is contained in:
Paul Banks 2021-08-25 11:22:30 +01:00
parent bcf22e00dc
commit b5ae00d753
1 changed files with 0 additions and 4 deletions

View File

@ -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
}