summaryrefslogtreecommitdiff
path: root/source/features/latest-tag-button.tsx
diff options
context:
space:
mode:
authorGravatar Fregante <opensource@bfred.it> 2020-06-16 19:56:43 +0200
committerGravatar GitHub <noreply@github.com> 2020-06-16 19:56:43 +0200
commita918f9a3eb6827dd67efdd1bcf362df2e7152406 (patch)
tree4aeb0966e89ed9a641f519f8934a959a868a8823 /source/features/latest-tag-button.tsx
parent1d003c988da53f575b0285f8366ada9b80b76510 (diff)
downloadrefined-github-a918f9a3eb6827dd67efdd1bcf362df2e7152406.tar.gz
refined-github-a918f9a3eb6827dd67efdd1bcf362df2e7152406.tar.zst
refined-github-a918f9a3eb6827dd67efdd1bcf362df2e7152406.zip
Meta: Minor improvements and lint (#3231)
Diffstat (limited to 'source/features/latest-tag-button.tsx')
-rw-r--r--source/features/latest-tag-button.tsx7
1 files changed, 6 insertions, 1 deletions
diff --git a/source/features/latest-tag-button.tsx b/source/features/latest-tag-button.tsx
index 89001830..55ed1833 100644
--- a/source/features/latest-tag-button.tsx
+++ b/source/features/latest-tag-button.tsx
@@ -114,7 +114,12 @@ async function init(): Promise<false | void> {
const defaultBranch = await getDefaultBranch();
if (currentBranch === defaultBranch) {
link.append(<sup> +{aheadBy}</sup>);
- link.setAttribute('aria-label', aheadBy ? `${defaultBranch} is ${pluralize(aheadBy, '1 commit', '$$ commits')} ahead of the latest release` : `The HEAD of ${defaultBranch} isn’t tagged`);
+ link.setAttribute(
+ 'aria-label',
+ aheadBy ?
+ `${defaultBranch} is ${pluralize(aheadBy, '1 commit', '$$ commits')} ahead of the latest release` :
+ `The HEAD of ${defaultBranch} isn’t tagged`
+ );
} else {
link.setAttribute('aria-label', 'Visit the latest release');
}