Skip to content

Commit

Permalink
Remove unnecessary check in unexported method
Browse files Browse the repository at this point in the history
There's no need for this in an unexported method. It was added in early
2009, before R required packages to have namespaces... in late 2011.

Fixes #307.
  • Loading branch information
joshuaulrich committed Oct 13, 2022
1 parent 7a0616c commit 843e429
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion R/na.R
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,6 @@ na.replace <- function(x) {
}

na.locf.xts <- function(object, na.rm=FALSE, fromLast=FALSE, maxgap=Inf, ...) {
stopifnot(is.xts(object))
maxgap <- min(maxgap, NROW(object))
if(length(object) == 0)
return(object)
Expand Down

0 comments on commit 843e429

Please sign in to comment.