Skip to content

Commit

Permalink
styler
Browse files Browse the repository at this point in the history
  • Loading branch information
strengejacke committed Sep 1, 2024
1 parent a57a780 commit 032d193
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions R/link_function.R
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,7 @@ link_function.default <- function(x, ...) {
}
# if all fails, force default link
if (is.null(out) && !is.null(default_link)) {
out <- switch(
default_link,
out <- switch(default_link,
identity = .safe(stats::gaussian(link = "identity")$linkfun),
.safe(stats::make.link(link = default_link)$linkfun)
)
Expand Down
3 changes: 1 addition & 2 deletions R/link_inverse.R
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,7 @@ link_inverse.default <- function(x, ...) {
}
# if all fails, force default link
if (is.null(out) && !is.null(default_link)) {
out <- switch(
default_link,
out <- switch(default_link,
identity = .safe(stats::gaussian(link = "identity")$linkinv),
.safe(stats::make.link(link = default_link)$linkinv)
)
Expand Down

0 comments on commit 032d193

Please sign in to comment.