Skip to content

Commit

Permalink
from review
Browse files Browse the repository at this point in the history
  • Loading branch information
Rathoz committed Aug 26, 2024
1 parent cdc245e commit a69d871
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ function WikiCopyPaste.getMatchCode(bestof, mode, index, opponents, args)

local lines = Array.extend(
'{{Match',
'|bestof=' .. (bestof ~= 0 and bestof or ''),
Logic.readBool(args.needsWinner) and INDENT .. '|winner=' or nil,
Array.map(Array.range(1, opponents), function(opponentIndex)
return INDENT .. '|opponent' .. opponentIndex .. '=' .. WikiCopyPaste.getOpponent(mode, showScore)
Expand All @@ -32,9 +33,7 @@ function WikiCopyPaste.getMatchCode(bestof, mode, index, opponents, args)
INDENT .. '|finished=',
INDENT .. '|twitch=|youtube='
} or nil,
Array.map(Array.range(1, bestof), function(mapIndex)
return WikiCopyPaste._getMapCode(mapIndex)
end),
Array.map(Array.range(1, bestof), WikiCopyPaste._getMapCode),
'}}'
)

Expand Down
7 changes: 0 additions & 7 deletions components/match2/wikis/deadlock/match_summary.lua
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,6 @@ function CustomMatchSummary.getByMatchId(args)
return MatchSummary.defaultGetByMatchId(CustomMatchSummary, args, {width = '400px', teamStyle = 'bracket'})
end

---@param match MatchGroupUtilMatch
---@param footer MatchSummaryFooter
---@return MatchSummaryFooter
function CustomMatchSummary.addToFooter(match, footer)
return MatchSummary.addVodsToFooter(match, footer)
end

---@param match MatchGroupUtilMatch
---@return MatchSummaryBody
function CustomMatchSummary.createBody(match)
Expand Down

0 comments on commit a69d871

Please sign in to comment.