Skip to content

Commit 33498ca

Browse files
committed
refactor: call common checking functions from separate file
1 parent 801c2cb commit 33498ca

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

‎R/ds.colnames.R‎

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,14 +52,10 @@
5252
ds.colnames <- function(x=NULL, datasources=NULL) {
5353

5454
.set_datasources(datasources)
55-
56-
if(is.null(x)){
57-
stop("Please provide the name of a data.frame or matrix!", call.=FALSE)
58-
}
55+
.check_df_name_provided(x)
5956

6057
cally <- call("colnamesDS", x)
6158
column_names <- DSI::datashield.aggregate(datasources, cally)
62-
6359
return(column_names)
6460

6561
}

0 commit comments

Comments
 (0)