Skip to content

Commit 105b710

Browse files
committed
Revert "Try to ensure that type/instance is not set when empty"
* we actually need this functionality to remove annotations This reverts commit 0d0fbe4.
1 parent a28ae52 commit 105b710

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

R/dvidtools.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,9 +128,9 @@ manc_set_dvid_instance <- function(bodyid, instance=NULL, type=NULL,
128128
stop("You must specify at least one of instance or type!")
129129

130130
annlist <- list()
131-
if(isTRUE(!is.na(instance) && nzchar(instance)))
131+
if(!is.null(instance))
132132
annlist <- list(instance=instance, "instance_user"=user)
133-
if(isTRUE(!is.na(type) && nzchar(type)))
133+
if(!is.null(type))
134134
annlist[c("type", "type_user")]=list(type, user)
135135
if(isTRUE(!is.na(synonyms) && nzchar(synonyms)))
136136
annlist[c("synonyms", "synonyms_user")]=list(synonyms, user)

0 commit comments

Comments
 (0)