Skip to content

Commit

Permalink
fix(gist): warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
sidharthv96 committed Jun 15, 2021
1 parent b762d1a commit 9801dd6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/lib/components/actions.svelte
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<script lang="ts">
import { goto } from '$app/navigation';
import Card from '$lib/components/card/card.svelte';
import type { State } from '$lib/types';
import { codeStore } from '$lib/util/state';
Expand Down
2 changes: 2 additions & 0 deletions src/lib/util/fileLoaders/gist.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ interface GistData {
}

const getGistData = async (gistURL: string): Promise<GistData> => {
// eslint-disable-next-line @typescript-eslint/no-unused-vars
const [_, __, gistID, revisionID] = gistURL.split('github.com').pop().split('/');
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
const { html_url, files, history } = await (
Expand Down Expand Up @@ -71,6 +72,7 @@ const getStateFromGist = (gist: GistData, gistURL: string = gist.url): State =>

export const loadGistData = async (gistURL: string): Promise<State> => {
try {
// eslint-disable-next-line @typescript-eslint/no-unused-vars
const [_, __, gistID, revisionID] = gistURL.split('github.com').pop().split('/');
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
const { history } = await (
Expand Down

0 comments on commit 9801dd6

Please sign in to comment.