feat(webconnectivity): long-term-evolution prototype (#882)
See https://github.com/ooni/probe/issues/2237
This commit is contained in:
parent
9ba6f8dcbb
commit
1a1d3126ae
20 changed files with 3067 additions and 1 deletions
|
|
@ -215,7 +215,8 @@ func CanonicalizeExperimentName(name string) string {
|
|||
|
||||
// NewFactory creates a new Factory instance.
|
||||
func NewFactory(name string) (*Factory, error) {
|
||||
factory := allexperiments[CanonicalizeExperimentName(name)]
|
||||
name = CanonicalizeExperimentName(name)
|
||||
factory := allexperiments[name]
|
||||
if factory == nil {
|
||||
return nil, fmt.Errorf("no such experiment: %s", name)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue