Skip to content

Commit eef82e9

Browse files
committed
Avoid R_UnboundValue
It is not allowed now. But it is also not needed.
1 parent aa8ec75 commit eef82e9

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

src/progress.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -352,9 +352,7 @@ void cli_progress_done(SEXP bar) {
352352

353353
int cli_progress_num(void) {
354354
SEXP clienv = PROTECT(clic__find_var(cli_pkgenv, Rf_install("clienv")));
355-
if (clienv == R_UnboundValue) error("Cannot find 'clienv'");
356355
SEXP bars = PROTECT(clic__find_var(clienv, Rf_install("progress")));
357-
if (bars == R_UnboundValue) error("Cannot find 'clienv$progress'");
358356
UNPROTECT(2);
359357
return LENGTH(bars);
360358
}

0 commit comments

Comments
 (0)