Skip to content

Commit 4441945

Browse files
committed
Use inherits() instead of if(class(x)==y)
1 parent cd95e05 commit 4441945

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/server.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ argsForServerFunc <- function(serverFunc, session) {
331331
getEffectiveBody <- function(func) {
332332
if (is.null(func))
333333
NULL
334-
else if (isS4(func) && class(func) == "functionWithTrace")
334+
else if (isS4(func) && inherits(func, "functionWithTrace"))
335335
body(func@original)
336336
else
337337
body(func)

0 commit comments

Comments
 (0)