api/agent/version.go
Function GetAgentVersionAndPlatform
has 9 return statements (exceeds 4 allowed). Open
Open
func GetAgentVersionAndPlatform(endpointUrl string, tlsConfig *tls.Config) (portainer.AgentPlatform, string, error) {
httpCli := &http.Client{
Timeout: 3 * time.Second,
}