Skip to content

Commit

Permalink
code style
Browse files Browse the repository at this point in the history
  • Loading branch information
shikokuchuo committed Aug 13, 2023
1 parent ed64f85 commit 6fe06fd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/mirai.R
Original file line number Diff line number Diff line change
Expand Up @@ -847,8 +847,8 @@ saisei <- function(i = 1L, force = FALSE, .compute = "default") {

envir <- ..[[.compute]]
i <- as.integer(`length<-`(i, 1L))
length(envir[["sockc"]]) && i >= 1L && i <= envir[["n"]] && substr(envir[["urls"]][[i]], 1L, 1L) != "t" || return()
r <- query_dispatcher(sock = envir[["sockc"]], command = if (force) -i else i, mode = 2L)
length(envir[["sockc"]]) && i > 0L && i <= envir[["n"]] && substr(envir[["urls"]][[i]], 1L, 1L) != "t" || return()
r <- query_dispatcher(sock = envir[["sockc"]], command = i - force * 2L * i, mode = 2L)
is.character(r) && nzchar(r) || return()
envir[["urls"]][[i]] <- r
r
Expand Down

0 comments on commit 6fe06fd

Please sign in to comment.