diff --git a/scripts/speculator/main.go b/scripts/speculator/main.go index ad0a897be..d641d7da4 100644 --- a/scripts/speculator/main.go +++ b/scripts/speculator/main.go @@ -178,6 +178,7 @@ func (s *server) serveSpec(w http.ResponseWriter, req *http.Request) { originHead, err := s.getSHAOf("origin/master") if err != nil { writeError(w, 500, err) + return } sha = originHead } else {