Skip to content

Commit

Permalink
Fix lint check
Browse files Browse the repository at this point in the history
Signed-off-by: Ashish Tiwari <ashishjaitiwari15112000@gmail.com>
  • Loading branch information
Revolyssup committed Jun 13, 2023
1 parent d02242d commit f796a56
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions pkg/types/apisix/v1/plugin_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -264,9 +264,7 @@ func (p *Headers) Remove(headersToRemove []string) {
}
if headersToRemove != nil {
removeHeaders := make([]string, 0)
for _, h := range headersToRemove {
removeHeaders = append(removeHeaders, h)
}
removeHeaders = append(removeHeaders, headersToRemove...)
(*p)["remove"] = removeHeaders
}
}
Expand Down

0 comments on commit f796a56

Please sign in to comment.