@@ -148,9 +148,10 @@ func (tx *ValgrindCGI) Execute() (http.Header, []byte, error) {
148
148
149
149
// Replace the handler with valgrind
150
150
tx .handler .Path = cmd .Path
151
- tx .handler .Args = cmd .Args [1 :] // The first Arg is the Path.
152
- // ServeHTTP will re-add Path
153
- // to the front of Args
151
+ // The first Arg is the Path.
152
+ // ServeHTTP will re-add Path
153
+ // to the front of Args
154
+ tx .handler .Args = cmd .Args [1 :]
154
155
155
156
ch := make (chan resultOrError , 1 )
156
157
go func () {
@@ -182,7 +183,6 @@ func (tx *ValgrindCGI) Execute() (http.Header, []byte, error) {
182
183
output = append (output , data ... )
183
184
}
184
185
185
-
186
186
// Ensure a non-nil error is returned when valgrind detects errors.
187
187
// Otherwise, the test could be marked as passing if it does not have
188
188
// any expectations on the test output. This sucks.
@@ -197,6 +197,7 @@ func (tx *ValgrindCGI) Execute() (http.Header, []byte, error) {
197
197
return resp .HeaderMap , output , err
198
198
199
199
}
200
+
200
201
// resultOrError is a poor man's sum type.
201
202
type resultOrError struct {
202
203
R * valgrind.Report
0 commit comments