Skip to content

Commit

Permalink
stop when no author
Browse files Browse the repository at this point in the history
  • Loading branch information
shrektan committed Oct 10, 2023
1 parent 54b698c commit f1d9398
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions update_authors.R
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ authors_flattened <- vapply(stringr::str_split(authors, ",\\s+"), \(x) {
paste(x, collapse = "\n ")
}, FUN.VALUE = character(1L))

no_author <- names[!nzchar(authors_flattened)]
if (length(no_author)) stop(paste0("find no author crates: ", toString(no_author)))

cat(paste(
names, " (version ", versions, "):\n ",
authors_flattened,
Expand Down

0 comments on commit f1d9398

Please sign in to comment.