Skip to content

Commit

Permalink
Revert "Try to ensure that type/instance is not set when empty"
Browse files Browse the repository at this point in the history
* we actually need this functionality to remove annotations

This reverts commit 0d0fbe4.
  • Loading branch information
jefferis committed Sep 9, 2022
1 parent a28ae52 commit 105b710
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/dvidtools.R
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,9 @@ manc_set_dvid_instance <- function(bodyid, instance=NULL, type=NULL,
stop("You must specify at least one of instance or type!")

annlist <- list()
if(isTRUE(!is.na(instance) && nzchar(instance)))
if(!is.null(instance))
annlist <- list(instance=instance, "instance_user"=user)
if(isTRUE(!is.na(type) && nzchar(type)))
if(!is.null(type))
annlist[c("type", "type_user")]=list(type, user)
if(isTRUE(!is.na(synonyms) && nzchar(synonyms)))
annlist[c("synonyms", "synonyms_user")]=list(synonyms, user)
Expand Down

0 comments on commit 105b710

Please sign in to comment.