summaryrefslogtreecommitdiff
path: root/source/github-helpers/github-url.ts
diff options
context:
space:
mode:
authorGravatar Federico Brigante <me@fregante.com> 2021-07-07 18:44:32 +0700
committerGravatar GitHub <noreply@github.com> 2021-07-07 18:44:32 +0700
commit93899eebabea8626587cadc37b028a3c48f39228 (patch)
treea59dddeea1c6bc76b45c02ef88bba43e2800e684 /source/github-helpers/github-url.ts
parent40ed43f6cdd23178b6c6ee7c04a5731cb2342012 (diff)
downloadrefined-github-93899eebabea8626587cadc37b028a3c48f39228.tar.gz
refined-github-93899eebabea8626587cadc37b028a3c48f39228.tar.zst
refined-github-93899eebabea8626587cadc37b028a3c48f39228.zip
Lint: Enable `comma-dangle` (#4545)
Diffstat (limited to 'source/github-helpers/github-url.ts')
-rw-r--r--source/github-helpers/github-url.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/github-helpers/github-url.ts b/source/github-helpers/github-url.ts
index 7f964b20..066e27e4 100644
--- a/source/github-helpers/github-url.ts
+++ b/source/github-helpers/github-url.ts
@@ -34,7 +34,7 @@ export default class GitHubURL {
}
private disambiguateReference(
- ambiguousReference: string[]
+ ambiguousReference: string[],
): {branch: string; filePath: string} {
const branch = ambiguousReference[0];
// History pages might use search parameters
@@ -67,7 +67,7 @@ export default class GitHubURL {
return {
branch: currentBranch,
- filePath: ambiguousReference.slice(currentBranchSections.length).join('/')
+ filePath: ambiguousReference.slice(currentBranchSections.length).join('/'),
};
}