Skip to content

Commit

Permalink
CLEANUP: Don't specify arguments for NextMethod().
Browse files Browse the repository at this point in the history
  • Loading branch information
HenrikBengtsson committed May 30, 2018
1 parent f2af2f6 commit 4c3f4e4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion R/DevEvalProduct.R
Expand Up @@ -97,7 +97,7 @@ setMethodS3("[[", "DevEvalProduct", function(x, name, ...) {
})
if (inherits(res, "Exception")) throw(res)
if (!inherits(res, "simpleError")) return(res)
NextMethod("[[")
NextMethod()
}, private=TRUE)


Expand Down
4 changes: 2 additions & 2 deletions R/recordedplot-methods.R
Expand Up @@ -34,7 +34,7 @@ as.architecture <- function(x, ostype=.Platform$OS.type, arch=R.version$arch, pt
#' @export
setMethodS3("architecture", "RecordedPlot", function(x, ...) {
system <- attr(x, "system")
if (is.null(system)) return(NextMethod("architecture"))
if (is.null(system)) return(NextMethod())

ostype <- system$ostype
if (is.null(ostype)) ostype <- NA_character_
Expand Down Expand Up @@ -173,7 +173,7 @@ gpar <- function(x) {

#' @export
setMethodS3("as.architecture", "RecordedPlot", function(x, ...) {
y <- NextMethod("as.architecture")
y <- NextMethod()
system <- attr(x, "system")
if (is.null(system)) return(y)

Expand Down

0 comments on commit 4c3f4e4

Please sign in to comment.