release 3.9.0 process: reduce warnings (#279)
* fix(riseupvpn): address gofmt warning Thanks to https://goreportcard.com/report/github.com/ooni/probe-cli. * fix(utils.go): correct the docu-comment Thanks to https://goreportcard.com/report/github.com/ooni/probe-cli * fix: improve spelling Thanks to https://goreportcard.com/report/github.com/ooni/probe-cli * fix(modelx_test.go): avoid inefassign warning Thanks to https://goreportcard.com/report/github.com/ooni/probe-cli * fix: reduce number of ineffective assignments Thanks to https://goreportcard.com/report/github.com/ooni/probe-cli
This commit is contained in:
@@ -555,6 +555,9 @@ func TestMissingTransport(t *testing.T) {
|
||||
transports = transports[:len(transports)-1]
|
||||
eipService.Gateways[1].Capabilities.Transport = transports
|
||||
eipservicejson, err := json.Marshal(eipservice)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
||||
requestResponseMap := map[string]string{
|
||||
eipserviceurl: string(eipservicejson),
|
||||
@@ -746,7 +749,7 @@ func generateMockGetter(requestResponse map[string]string, responseStatus map[st
|
||||
FailedOperation: failedOperation,
|
||||
HTTPResponseStatus: responseStatus,
|
||||
HTTPResponseBody: responseBody,
|
||||
Requests: []archival.RequestEntry{archival.RequestEntry{
|
||||
Requests: []archival.RequestEntry{{
|
||||
Failure: failure,
|
||||
Request: archival.HTTPRequest{
|
||||
URL: url,
|
||||
|
||||
@@ -29,7 +29,6 @@ func SNISplitter(input []byte, sni []byte) (output [][]byte) {
|
||||
}
|
||||
if len(buf) > 0 {
|
||||
output = append(output, buf)
|
||||
buf = nil
|
||||
}
|
||||
output = append(output, input[idx+len(sni):])
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user