Skip to content

Commit

Permalink
remove redunant code
Browse files Browse the repository at this point in the history
  • Loading branch information
aclark02-arcus committed Jul 9, 2024
1 parent bd26668 commit f2e3ff0
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions R/mod_packageDependencies.R
Original file line number Diff line number Diff line change
Expand Up @@ -123,14 +123,7 @@ packageDependenciesServer <- function(id, selected_pkg, user, credentials, paren
decision_id = character(0)))
}
)
# this is so the dependencies is also a 0x2 tibble like suggests
if (rlang::is_empty(pkgref()$dependencies[[1]])) {
depends(
dplyr::tibble(package = character(0), type = character(0), name = character(0),
version = character(0), score = character(0), decision = character(0),
decision_id = character(0))
)
}


revdeps(pkgref()$reverse_dependencies[[1]] %>% as.vector())

Expand Down

0 comments on commit f2e3ff0

Please sign in to comment.