Skip to content

Commit

Permalink
chore: keep simplifying
Browse files Browse the repository at this point in the history
  • Loading branch information
mxdvl committed Jun 13, 2024
1 parent b2e8097 commit 536e00e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions sport/app/football/controllers/LeagueTableController.scala
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,11 @@ class LeagueTableController(
val htmlResponse =
() =>
football.views.html.tablesList
.tablesPage(TablesPage(page, groups, "/football", filters(tableOrder), None, None))
.tablesPage(TablesPage(page, groups, "/football", filters(tableOrder), None))
val jsonResponse =
() =>
football.views.html.tablesList
.tablesPage(TablesPage(page, groups, "/football", filters(tableOrder), None, None))
.tablesPage(TablesPage(page, groups, "/football", filters(tableOrder), None))
renderFormat(htmlResponse, jsonResponse, page, Switches.all)

}
Expand Down
4 changes: 2 additions & 2 deletions sport/app/football/controllers/MatchDayController.scala
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class MatchDayController(
val matches = MatchDayList(competitionsService.competitions, date)
val webTitle = if (date == LocalDate.now(Edition.defaultEdition.timezoneId)) "Live matches" else "Matches"
val page = new FootballPage("football/live", "football", webTitle)
renderMatchList(page, matches, filters, None)
renderMatchList(page, matches, filters)
}

def competitionMatchesJson(competitionTag: String): Action[AnyContent] = competitionMatches(competitionTag)
Expand Down Expand Up @@ -64,7 +64,7 @@ class MatchDayController(
.map(_.interactive.map(InteractiveAtom.make(_)))
.recover { case _ => None }
.map(renderMatchList(page, matches, filters, _))
} else Future.successful(renderMatchList(page, matches, filters, None))
} else Future.successful(renderMatchList(page, matches, filters))
}
.getOrElse {
Future.successful(NotFound)
Expand Down

0 comments on commit 536e00e

Please sign in to comment.