Skip to content

Commit d488de8

Browse files
teunbrandyjunechoe
andauthored
Apply suggestions from code review
Co-authored-by: June Choe <[email protected]>
1 parent 6e71e1a commit d488de8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

R/boilerplates.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,8 @@ boilerplate.Geom <- function(x, ..., checks = NULL, env = caller_env()) {
115115
with {.fn rlang::exprs}."
116116
)
117117
}
118-
body <- inject(quote(`{`(!!!c(checks, body))))
118+
body <- call2("{", !!!checks, body)
119119
}
120120

121-
new_function(fmls, body)
121+
new_function(fmls, body, env = caller_env())
122122
}

0 commit comments

Comments
 (0)