Skip to content

Commit 3b4f2e6

Browse files
committed
Remove unnecessary nolint comments
1 parent 1b8ac15 commit 3b4f2e6

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

R/coh_eff_utils.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ cox_model <- function(data_set,
102102
# Cox model time to event, outcome ~ vaccine status
103103
# Regression
104104
model <- survival::coxph(
105-
survival::Surv( # nolint
105+
survival::Surv(
106106
data_set[[time_to_event_col]], data_set[[outcome_status_col]]
107107
) ~ data_set[[vacc_status_col]]
108108
)

tests/testthat/test-coh_data_wrangling.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ test_that("`set_status`: Correctness", {
7575
cohortdata[, c("death_date", "vaccine_date_1")],
7676
MARGIN = 1,
7777
FUN = function(x) {
78-
all(!is.na(x)) # nolint
78+
all(!is.na(x))
7979
}
8080
)
8181
expect_identical(
@@ -88,7 +88,7 @@ test_that("`set_status`: Correctness", {
8888
cohortdata[, c("death_date", "vaccine_date_1")],
8989
MARGIN = 1,
9090
FUN = function(x) {
91-
any(!is.na(x)) # nolint
91+
any(!is.na(x))
9292
}
9393
)
9494
expect_identical(

tests/testthat/test-coh_match.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ test_that("`match_cohort`: basic expectations", {
5050
})
5151

5252
# Snapshot for summary
53-
test_that("`match_cohort`: summary snapshot", { # nolint
53+
test_that("`match_cohort`: summary snapshot", {
5454
for (column in c("balance_all", "balance_match", "summary")) {
5555
expect_snapshot_value(matching[column], style = "json2", tolerance = 1e-1)
5656
}

0 commit comments

Comments
 (0)