Skip to content

Commit

Permalink
chore: style
Browse files Browse the repository at this point in the history
  • Loading branch information
gadenbuie committed Jan 13, 2025
1 parent 8b0c288 commit 4598a80
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions R/find-port.R
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,13 @@ getRandomPort <- function(){
}

findRandomPort <- function() {
port <- if (!is.null(.globals$port)) {
# Start by trying the .globals$port
.globals$port
} else {
getRandomPort()
}
port <-
if (!is.null(.globals$port)) {
# Start by trying the .globals$port
.globals$port
} else {
getRandomPort()
}

for (i in 1:10) {
tryCatch(
Expand Down

0 comments on commit 4598a80

Please sign in to comment.