% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/run_covr_modes.R
\name{cleanup_and_return_null}
\alias{cleanup_and_return_null}
\title{Clean up global environment and return NULL}
\usage{
cleanup_and_return_null(msg = NULL, env = cov_env)
}
\arguments{
\item{msg}{Optional character string. If provided, the message will be printed before cleanup.}

\item{env}{A character string specifying the covr env}
}
\value{
NULL (invisibly)
}
\description{
This internal utility function is used to clean up the global environment
by removing all objects and optionally displaying a message before returning `NULL`.
It is primarily used within `run_coverage_base()` to ensure consistent cleanup
in error-handling scenarios.
}
\keyword{internal}
