Skip to content
Snippets Groups Projects
Commit 12a4c94f authored by Pea Nut's avatar Pea Nut Committed by jkito
Browse files

Fix comment in Bonafide.GetBestLocation

parent adaffcbf
No related branches found
No related tags found
1 merge request!201v5 follow-up: Improve some logging, cleanup code
Pipeline #230836 passed
......@@ -316,12 +316,13 @@ func (b *Bonafide) SetAutomaticGateway() {
b.gateways.setAutomaticChoice()
}
// This function is part of the apiInterface
// In the v5 implementation, some errors can happen
// In this case we always return nil as error
func (b *Bonafide) GetBestLocation(transport string) (string, error) {
if b.gateways == nil {
return "", nil
}
// in the v5/menshen implementation, some errors can happen, this
// function will be part of an interface
return b.gateways.getBestLocation(transport, b.tzOffsetHours), nil
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment