Skip to content

Commit

Permalink
Remove integer returning code for zero length POSIXct.
Browse files Browse the repository at this point in the history
This is more consistent in terms of data typing.
Fixes #363.
  • Loading branch information
Jasper Schelfhout authored and joshuaulrich committed Mar 27, 2022
1 parent f0b4f68 commit faea977
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions R/index.R
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,6 @@ function(x, ...) {

#x.index <- structure(.index(x), class=c("POSIXct","POSIXt"))
x.index <- .POSIXct(.index(x), tz=attr(.index(x), "tzone"))
if(length(x.index) == 0)
return(integer())

if(!is.list(value))
value <- as.list(value)
Expand Down

0 comments on commit faea977

Please sign in to comment.