Skip to content

Commit ecea1ae

Browse files
committed
Fixes formatting
1 parent aaf70a6 commit ecea1ae

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

generator/operations_tmpl.go

+16-16
Original file line numberDiff line numberDiff line change
@@ -28,23 +28,23 @@ var opsTmpl = `
2828
{{$output := findType .Output.Message}}
2929
3030
{{/*if ne $soapAction ""*/}}
31-
{{if gt $faults 0}}
32-
//
33-
// Error can be either of the following types:
34-
// {{range .Faults}}
35-
// - {{.Name}} {{.Doc}}{{end}}
36-
//
37-
{{end}}
38-
{{if ne .Doc ""}}// {{.Doc}}{{end}}
39-
func (service *{{$portType}}) {{makePublic .Name}} (request *{{$requestType}}) (*{{$output}}, error) {
40-
response := &{{$output}}{}
41-
err := service.client.Call("{{$soapAction}}", request, response)
42-
if err != nil {
43-
return nil, err
44-
}
45-
46-
return response, nil
31+
{{if gt $faults 0}}
32+
//
33+
// Error can be either of the following types:
34+
// {{range .Faults}}
35+
// - {{.Name}} {{.Doc}}{{end}}
36+
//
37+
{{end}}
38+
{{if ne .Doc ""}}// {{.Doc}}{{end}}
39+
func (service *{{$portType}}) {{makePublic .Name}} (request *{{$requestType}}) (*{{$output}}, error) {
40+
response := &{{$output}}{}
41+
err := service.client.Call("{{$soapAction}}", request, response)
42+
if err != nil {
43+
return nil, err
4744
}
45+
46+
return response, nil
47+
}
4848
{{/*end*/}}
4949
{{end}}
5050
{{end}}

0 commit comments

Comments
 (0)