Skip to content

Commit

Permalink
handle case when no rightsholder and funder are defined
Browse files Browse the repository at this point in the history
  • Loading branch information
ThierryO committed Sep 14, 2024
1 parent 47543af commit e6a345e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions R/check_description.R
Original file line number Diff line number Diff line change
Expand Up @@ -311,9 +311,13 @@ check_authors <- function(this_desc, org) {
)
funder <- NULL
}
} else if (!is.na(org$get_funder)) {
} else {
rightsholder <- NULL
funder <- person(given = org$get_funder, role = "fnd")
if (!is.na(org$get_funder)) {
funder <- person(given = org$get_funder, role = "fnd")

Check warning on line 317 in R/check_description.R

View check run for this annotation

Codecov / codecov/patch

R/check_description.R#L316-L317

Added lines #L316 - L317 were not covered by tests
} else {
funder <- NULL

Check warning on line 319 in R/check_description.R

View check run for this annotation

Codecov / codecov/patch

R/check_description.R#L319

Added line #L319 was not covered by tests
}
}

problems <- c(
Expand Down

0 comments on commit e6a345e

Please sign in to comment.