Skip to content

Commit

Permalink
Fix indent
Browse files Browse the repository at this point in the history
  • Loading branch information
Levko Burburas committed Apr 15, 2021
1 parent b82e028 commit 2094b28
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions http/codegen/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,7 @@ func {{ .RequestDecoder }}(mux goahttp.Muxer, decoder func(*http.Request) goahtt
{{- if .MultipartRequestDecoder }}
var payload {{ .Payload.Ref }}
if err := decoder(r).Decode(&payload); err != nil {
{{- $length := len .Errors }} {{- if ne $length 0 }}
{{- $length := len .Errors }} {{- if ne $length 0 }}
if en, ok := err.(ErrorNamer); ok {
switch en.ErrorName() {
{{- range $gerr := .Errors }}
Expand All @@ -514,7 +514,7 @@ func {{ .RequestDecoder }}(mux goahttp.Muxer, decoder func(*http.Request) goahtt
{{- end }}
}
}
{{- end }}
{{- end }}
return nil, goa.DecodePayloadError(err.Error())
}
{{- else if .Payload.Request.ServerBody }}
Expand All @@ -533,7 +533,7 @@ func {{ .RequestDecoder }}(mux goahttp.Muxer, decoder func(*http.Request) goahtt
err = nil
} else {
{{- end }}
{{- $length := len .Errors }} {{- if ne $length 0 }}
{{- $length := len .Errors }} {{- if ne $length 0 }}
if en, ok := err.(ErrorNamer); ok {
switch en.ErrorName() {
{{- range $gerr := .Errors }}
Expand All @@ -544,7 +544,7 @@ func {{ .RequestDecoder }}(mux goahttp.Muxer, decoder func(*http.Request) goahtt
{{- end }}
}
}
{{- end }}
{{- end }}
return nil, goa.DecodePayloadError(err.Error())
{{- if not .Payload.Request.MustHaveBody }}
}
Expand Down

0 comments on commit 2094b28

Please sign in to comment.