diff --git a/nettests/psiphon.go b/nettests/psiphon.go index 8459831..228a7ba 100644 --- a/nettests/psiphon.go +++ b/nettests/psiphon.go @@ -30,12 +30,12 @@ func (h Psiphon) GetTestKeys(tk map[string]interface{}) (interface{}, error) { testKeys := PsiphonTestKeys{IsAnomaly: false, Failure: ""} if tk["failure"] != nil { testKeys.IsAnomaly = true - testKeys.Failure, ok = tk["failure"].(string) + testKeys.Failure, ok := tk["failure"].(string) if !ok { err = errors.Wrap(err, "failure key invalid") } } - testKeys.BootstrapTime, ok = tk["bootstrap_time"].(float64) + testKeys.BootstrapTime, ok := tk["bootstrap_time"].(float64) if !ok { err = errors.Wrap(err, "bootstrap_time key invalid") }