Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Chirico committed Apr 29, 2020
1 parent 2e3fa24 commit 950da2c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion R/pkg/R/serialize.R
Expand Up @@ -35,6 +35,8 @@
# jobj -> Object, where jobj is an object created in the backend
# nolint end

# TODO: this can be replaced by a single has_unique_serde_type function
# that simply returns TRUE/FALSE
getSerdeType <- function(object) {
type <- class(object)[[1L]]
if (is.atomic(object) && !is.raw(object) && length(object) > 1L) {
Expand Down Expand Up @@ -116,7 +118,7 @@ writeObject.raw <- function(object, con, writeType = TRUE) {
writeObject.struct <-
writeObject.list <- function(object, con, writeType = TRUE) {
if (has_unique_serde_type(object)) {
class(object) = 'ArrayList'
class(object) <- "ArrayList"
return(writeObject(object, con, writeType))
}
if (writeType) {
Expand Down

0 comments on commit 950da2c

Please sign in to comment.