Skip to content

Commit

Permalink
Run go fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
snorwin committed Jan 10, 2024
1 parent e2fcc08 commit 155a788
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion apis/config/v1alpha1/backend_types_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ var _ = Describe("Backend", Label("type"), func() {
Spec: configv1alpha1.BackendSpec{
BaseSpec: configv1alpha1.BaseSpec{
HTTPRequest: &configv1alpha1.HTTPRequestRules{
ReplacePath:[]configv1alpha1.ReplacePath{
ReplacePath: []configv1alpha1.ReplacePath{
{
MatchRegex: "(.*)",
ReplaceFmt: "/foo\\1",
Expand Down
12 changes: 6 additions & 6 deletions apis/config/v1alpha1/common_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -783,12 +783,12 @@ func (h *HTTPRequestRules) Model() (models.HTTPRequestRules, error) {

for idx, header := range h.ReplacePath {
model = append(model, &models.HTTPRequestRule{
Type: "replace-path",
Index: ptr.To(int64(idx)),
PathMatch: header.MatchRegex,
PathFmt: header.ReplaceFmt,
Cond: header.ConditionType,
CondTest: header.Condition,
Type: "replace-path",
Index: ptr.To(int64(idx)),
PathMatch: header.MatchRegex,
PathFmt: header.ReplaceFmt,
Cond: header.ConditionType,
CondTest: header.Condition,
})
}

Expand Down

0 comments on commit 155a788

Please sign in to comment.