Skip to content

Commit

Permalink
Issue #61: Removed double underscore from function name
Browse files Browse the repository at this point in the history
  • Loading branch information
salatak committed Mar 19, 2024
1 parent 1528495 commit 441e5d8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion R/api_create_study.R
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
api__minimization_pocock <- function(
api_minimization_pocock <- function(
# nolint: cyclocomp_linter.
identifier, name, method, arms, covariates, p, req, res) {
audit_log_set_event_type("study_create", req)
Expand Down
2 changes: 1 addition & 1 deletion R/api_randomize.R
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ parse_pocock_parameters <-
return(params)
}

api__randomize_patient <- function(study_id, current_state, req, res) {
api_randomize_patient <- function(study_id, current_state, req, res) {
audit_log_set_event_type("randomize_patient", req)
collection <- checkmate::makeAssertCollection()

Expand Down
4 changes: 2 additions & 2 deletions inst/plumber/unbiased_api/study.R
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
unbiased:::wrap_endpoint(function(
identifier, name, method, arms, covariates, p, req, res) {
return(
unbiased:::api__minimization_pocock(
unbiased:::api_minimization_pocock(
identifier, name, method, arms, covariates, p, req, res
)
)
Expand All @@ -40,7 +40,7 @@ unbiased:::wrap_endpoint(function(

unbiased:::wrap_endpoint(function(study_id, current_state, req, res) {
return(
unbiased:::api__randomize_patient(study_id, current_state, req, res)
unbiased:::api_randomize_patient(study_id, current_state, req, res)
)
})

Expand Down

0 comments on commit 441e5d8

Please sign in to comment.