Skip to content

Commit

Permalink
chore(findPort): Make NULL the default case, avoid missing()
Browse files Browse the repository at this point in the history
  • Loading branch information
gadenbuie committed Jan 13, 2025
1 parent 4598a80 commit f16788d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/find-port.R
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ findRandomPort <- function() {
#' Find a port either using the assigned port or randomly search 10 times for an available
#' port. If a port was manually assigned, just return it and assume it will work.
#' @noRd
findPort <- function(port) {
if (missing(port) || is.null(port)) {
findPort <- function(port = NULL) {
if (is.null(port)) {
return(findRandomPort())
}

Expand Down

0 comments on commit f16788d

Please sign in to comment.