Remove unnecessary check

This commit is contained in:
Paul Banks 2021-08-25 11:22:30 +01:00
parent 27e520971f
commit e0ad412f1d
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
}