Skip to content

Commit

Permalink
simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
privefl committed Sep 7, 2024
1 parent d63dc34 commit f17593a
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/FBM-replace.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -118,11 +118,7 @@ bool do_warn_downcast() {
Function get_option = base["getOption"];
SEXP warn = get_option("bigstatsr.downcast.warning");

if (TYPEOF(warn) == LGLSXP) {
return as<LogicalVector>(warn)[0];
} else {
return true; // but this shoud not happen
}
return Rf_isNull(warn) ? true : Rf_asLogical(warn);
}

/******************************************************************************/
Expand Down

0 comments on commit f17593a

Please sign in to comment.