We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 492d657 commit 6474e17Copy full SHA for 6474e17
R/0_helpers.R
@@ -12,7 +12,7 @@
12
date <- Sys.Date()
13
}
14
15
- if (class(date) != "Date") {
+ if (!inherits(date, "Date")) {
16
date <- as.Date(date)
17
18
R/mfl_players.R
@@ -18,7 +18,7 @@
#' @export
19
20
mfl_players <- function(conn = NULL) {
21
- if (!is.null(conn) && class(conn) != "mfl_conn") {
+ if (!is.null(conn) && !inherits(conn, "mfl_conn")) {
22
stop("conn must be generated by 'mfl_connect()' and have type 'mfl_conn'")
23
24
0 commit comments