Skip to content

Commit

Permalink
missed '!'
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelChirico committed Mar 26, 2024
1 parent 9393f60 commit c9a32b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/read_translation.R
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ set_prompt_conn <- function() {
}

unset_prompt_conn <- function() {
if (exists("prompt_conn", envir=.potools) && inherits(.potools$prompt_conn, "terminal"))
if (exists("prompt_conn", envir=.potools) && !inherits(.potools$prompt_conn, "terminal"))
close(.potools$prompt_conn)
invisible()
}
Expand Down

0 comments on commit c9a32b5

Please sign in to comment.