From 64b4a5e6355872c49429f1d19c3403277d032b6c Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Sat, 24 Jun 2023 17:55:00 -0300 Subject: content: linkContribution: take standard {who, what} object This is what's used for all contributions anyway, so no need to have every call to linkContribution manually destructure whatever contribution is being provided. --- src/content/dependencies/generateReleaseInfoContributionsLine.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/content/dependencies/generateReleaseInfoContributionsLine.js') diff --git a/src/content/dependencies/generateReleaseInfoContributionsLine.js b/src/content/dependencies/generateReleaseInfoContributionsLine.js index 78d3e506..5a97e651 100644 --- a/src/content/dependencies/generateReleaseInfoContributionsLine.js +++ b/src/content/dependencies/generateReleaseInfoContributionsLine.js @@ -13,8 +13,7 @@ export default { contributionLinks: contributions .slice(0, 4) - .map(({who, what}) => - relation('linkContribution', who, what)), + .map(contrib => relation('linkContribution', contrib)), }; }, -- cgit 1.3.0-6-gf8a5