Skip to content

Commit

Permalink
refactor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
jak3sch committed Oct 14, 2024
1 parent 6dbc1e1 commit 3131ac8
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions R/mfl_league.R
Original file line number Diff line number Diff line change
Expand Up @@ -53,15 +53,12 @@ ff_league.mfl_conn <- function(conn) {
}

.mfl_league_type <- function(league_endpoint) {
x <- league_endpoint[["keeperType"]]
if (is.null(x)) {
x <- league_endpoint[["loadRosters"]]
x <- league_endpoint[["load_rosters"]]
if (x == "contest") return(x)

if (x != "contest") {
return(NA_character_)
}
}
x <- league_endpoint[["keeperType"]]
if (x == "none") x <- "redraft"

x
}

Expand Down

0 comments on commit 3131ac8

Please sign in to comment.