Skip to content

Commit

Permalink
Revert "Merge pull request #221 from HenrikBengtsson/master"
Browse files Browse the repository at this point in the history
This reverts commit 5eadd5d, reversing
changes made to 7e49d3e.
  • Loading branch information
jimhester committed Jan 20, 2017
1 parent adffd69 commit accef86
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions R/covr.R
Expand Up @@ -328,17 +328,12 @@ merge_coverage <- function(...) {
return()
}

if (getRversion() < "3.2.0") {
lengths <- function(x, ...) vapply(x, length, integer(1L))
}

## FIXME: https://github.com/jimhester/covr/issues/177
ns <- lengths(objs)
objs <- objs[ns != 2]

x <- objs[[1]]
others <- objs[-1]

if (getRversion() < "3.2.0") {
lengths <- function(x, ...) vapply(x, length, integer(1L))
}
stopifnot(all(lengths(others) == length(x)))

for (y in others) {
Expand Down

0 comments on commit accef86

Please sign in to comment.