diff --git a/cmd/cloudflared/updater/workers_service.go b/cmd/cloudflared/updater/workers_service.go index 23a4096810f..4b52571cf9a 100644 --- a/cmd/cloudflared/updater/workers_service.go +++ b/cmd/cloudflared/updater/workers_service.go @@ -56,6 +56,9 @@ func (s *WorkersService) Check() (CheckResult, error) { } req, err := http.NewRequest(http.MethodGet, s.url, nil) + if err != nil { + return nil, err + } q := req.URL.Query() q.Add(OSKeyName, runtime.GOOS) q.Add(ArchitectureKeyName, runtime.GOARCH)