Skip to content

Commit

Permalink
Addressing issues
Browse files Browse the repository at this point in the history
  • Loading branch information
gvegayon committed Sep 27, 2024
1 parent 5528890 commit 58bfc48
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions R/tool.R
Original file line number Diff line number Diff line change
Expand Up @@ -191,12 +191,12 @@ add_tool <- function(model, tool, proportion) {
distfun = distribute_tool_randomly(proportion, TRUE)

Check warning on line 191 in R/tool.R

View check run for this annotation

Codecov / codecov/patch

R/tool.R#L190-L191

Added lines #L190 - L191 were not covered by tests
)

} else if (attr(tool, "uses_deprecated")) {
} else if (isTRUE(attr(tool, "uses_deprecated"))) {

Check warning on line 194 in R/tool.R

View check run for this annotation

Codecov / codecov/patch

R/tool.R#L194

Added line #L194 was not covered by tests

set_distribution_tool(
tool = tool,
distfun = distribute_tool_randomly(
proportion = attr(tool, "deprecated_args")$prevalence,
prevalence = attr(tool, "deprecated_args")$prevalence,
as_proportion = attr(tool, "deprecated_args")$as_proportion

Check warning on line 200 in R/tool.R

View check run for this annotation

Codecov / codecov/patch

R/tool.R#L196-L200

Added lines #L196 - L200 were not covered by tests
)
)
Expand Down
4 changes: 2 additions & 2 deletions R/virus.R
Original file line number Diff line number Diff line change
Expand Up @@ -191,12 +191,12 @@ add_virus <- function(model, virus, proportion) {
distfun=distribute_virus_randomly(proportion, as_proportion = TRUE)
)

} else if (attr(tool, "uses_deprecated")) {
} else if (isTRUE(attr(tool, "uses_deprecated"))) {

Check warning on line 194 in R/virus.R

View check run for this annotation

Codecov / codecov/patch

R/virus.R#L194

Added line #L194 was not covered by tests

set_distribution_virus(
virus = tool,
distfun = distribute_virus_randomly(
proportion = attr(tool, "deprecated_args")$prevalence,
prevalence = attr(tool, "deprecated_args")$prevalence,
as_proportion = attr(tool, "deprecated_args")$as_proportion

Check warning on line 200 in R/virus.R

View check run for this annotation

Codecov / codecov/patch

R/virus.R#L196-L200

Added lines #L196 - L200 were not covered by tests
)
)
Expand Down

0 comments on commit 58bfc48

Please sign in to comment.