Skip to content

Commit 3e073e1

Browse files
jp-darkmojaveazure
andauthored
Clean-up return types
Co-authored-by: Paul Hoffman <mojaveazure@users.noreply.github.com>
1 parent 06f80e1 commit 3e073e1

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

R/Profile.R

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ tiledb_profile <- function(name = NULL, dir = NULL) {
2727
stopifnot(`The 'dir' for the profile must be null or a character type` = is.null(name) || is.character(name))
2828
ptr <- libtiledb_profile_new(name, dir)
2929
profile <- new("tiledb_profile", ptr = ptr)
30-
invisible(profile)
30+
return(profile)
3131
}
3232

3333

@@ -36,14 +36,14 @@ tiledb_profile_load <- function(name = NULL, dir = NULL) {
3636
stopifnot(`The 'dir' for the profile must be null or a character type` = is.null(name) || is.character(name))
3737
ptr <- libtiledb_profile_load(name, dir)
3838
profile <- new("tiledb_profile", ptr = ptr)
39-
invisible(profile)
39+
return(profile)
4040
}
4141

4242
tiledb_profile_remove <- function(name = NULL, dir = NULL) {
4343
stopifnot(`The 'name' for the profile must be null or a character type` = is.null(name) || is.character(name))
4444
stopifnot(`The 'dir' for the profile must be null or a character type` = is.null(name) || is.character(name))
4545
libtiledb_profile_remove(name, dir)
46-
return()
46+
return(invisible(NULL))
4747
}
4848

4949
tiledb_profile_name <- function(profile) {
@@ -63,7 +63,7 @@ tiledb_profile_set_param <- function(profile, param, value) {
6363
stopifnot(`The 'param' arugment must have character type` = is.character(param))
6464
stopifnot(`The 'value' arugment must have character type` = is.character(value))
6565
libtiledb_profile_set_param(profile@ptr, param, value)
66-
return()
66+
return(invisible(NULL))
6767
}
6868

6969
tiledb_profile_get_param <- function(profile, param) {
@@ -76,5 +76,5 @@ tiledb_profile_get_param <- function(profile, param) {
7676
tiledb_profile_save <- function(profile) {
7777
stopifnot(`The 'profile' argument must be a tiledb_profile object` = is(profile, "tiledb_profile"))
7878
libtiledb_profile_save(profile)
79-
return()
79+
return(invisible(NULL))
8080
}

0 commit comments

Comments
 (0)