summaryrefslogtreecommitdiff
path: root/source/features/pinned-issues-update-time.tsx
diff options
context:
space:
mode:
authorGravatar yakov116 <16872793+yakov116@users.noreply.github.com> 2020-11-18 19:55:59 -0500
committerGravatar GitHub <noreply@github.com> 2020-11-18 18:55:59 -0600
commita935456acab0c7bdc021829e18ce20230e18c752 (patch)
treee61eed13a433381ba223a4ca962e904c8740fc91 /source/features/pinned-issues-update-time.tsx
parentcab33f6f47c4eef0a3bc793f2004767f34b6abe9 (diff)
downloadrefined-github-20.11.19.tar.gz
refined-github-20.11.19.tar.zst
refined-github-20.11.19.zip
Lint (#3723)20.11.19
Diffstat (limited to 'source/features/pinned-issues-update-time.tsx')
-rw-r--r--source/features/pinned-issues-update-time.tsx6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/features/pinned-issues-update-time.tsx b/source/features/pinned-issues-update-time.tsx
index 0cc428e9..5bcd6844 100644
--- a/source/features/pinned-issues-update-time.tsx
+++ b/source/features/pinned-issues-update-time.tsx
@@ -5,8 +5,8 @@ import * as pageDetect from 'github-url-detection';
import features from '.';
import * as api from '../github-helpers/api';
+import {getRepo} from '../github-helpers';
import looseParseInt from '../helpers/loose-parse-int';
-import {getRepoGQL, getRepo} from '../github-helpers';
interface IssueInfo {
updatedAt: string;
@@ -14,7 +14,7 @@ interface IssueInfo {
const getLastUpdated = cache.function(async (issueNumbers: number[]): Promise<Record<string, IssueInfo>> => {
const {repository} = await api.v4(`
- repository(${getRepoGQL()}) {
+ repository() {
${issueNumbers.map(number => `
${api.escapeKey(number)}: issue(number: ${number}) {
updatedAt
@@ -30,7 +30,7 @@ const getLastUpdated = cache.function(async (issueNumbers: number[]): Promise<Re
});
function getPinnedIssueNumber(pinnedIssue: HTMLElement): number {
- return looseParseInt(select('.opened-by', pinnedIssue)!.firstChild!.textContent!);
+ return looseParseInt(select('.opened-by', pinnedIssue)!.firstChild!);
}
async function init(): Promise<void | false> {