diff options
author | 2020-01-06 21:23:01 +0700 | |
---|---|---|
committer | 2020-01-06 21:23:01 +0700 | |
commit | dac2a0302aad5462c3a6b896fc66b18391c73d12 (patch) | |
tree | b132242544282269febc3b8a2e4cc0b2f4371346 /source/libs/utils.ts | |
parent | d98f01294ed89632ddd8bfaed153453ee68cb05b (diff) | |
download | refined-github-dac2a0302aad5462c3a6b896fc66b18391c73d12.tar.gz refined-github-dac2a0302aad5462c3a6b896fc66b18391c73d12.tar.zst refined-github-dac2a0302aad5462c3a6b896fc66b18391c73d12.zip |
`ci-link` should only refer to the default branch (+ minor fixes) (#2644)
Diffstat (limited to 'source/libs/utils.ts')
-rw-r--r-- | source/libs/utils.ts | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/source/libs/utils.ts b/source/libs/utils.ts index 5eedbda0..85886c97 100644 --- a/source/libs/utils.ts +++ b/source/libs/utils.ts @@ -27,11 +27,6 @@ export const getRepoPath = (): string | undefined => { return undefined; }; -export const getRepoBranch = (): string | undefined => { - const [type, branch] = location.pathname.split('/').slice(3); - return isRepo() && type === 'tree' ? branch : undefined; -}; - export const replaceBranch = (currentBranch: string, newBranch: string): string => { // `pageType` will be either `blob' or 'tree' const [pageType, ...branchAndPathParts] = getRepoPath()!.split('/'); |