fix: apply staticcheck suggestions (#262)

Preliminary work done as part of https://github.com/ooni/probe/issues/1299
This commit is contained in:
Simone Basso 2021-03-24 12:35:53 +01:00 committed by GitHub
commit 576059b3fa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -193,7 +193,7 @@ func canonicalizeExperimentName(name string) string {
}
func newExperimentBuilder(session *Session, name string) (*ExperimentBuilder, error) {
factory, _ := experimentsByName[canonicalizeExperimentName(name)]
factory := experimentsByName[canonicalizeExperimentName(name)]
if factory == nil {
return nil, fmt.Errorf("no such experiment: %s", name)
}