Skip to content

Commit

Permalink
check for missing id in easter eggs
Browse files Browse the repository at this point in the history
  • Loading branch information
AaronGullickson committed Sep 26, 2019
1 parent 58d0f28 commit 349e466
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion functions/naming_functions.R
Original file line number Diff line number Diff line change
Expand Up @@ -546,7 +546,11 @@ convert_arabic2roman <- function(arabic) {
}

add_easter_eggs <- function(system, id) {


if(is.na(id)) {
return(system)
}

idx <- which(system$planets$inhabitable)
if(length(idx)==0) {
return(system)
Expand Down

0 comments on commit 349e466

Please sign in to comment.