🚨 Fixed deepsource issues

This commit is contained in:
Mawoka
2023-06-30 18:55:13 +02:00
parent 3a2ab6c64b
commit 3e6e367ed0
10 changed files with 9 additions and 10 deletions
+1 -1
View File
@@ -6,7 +6,7 @@
import { signedIn } from '$lib/stores';
import type { LayoutLoad } from './$types';
export const load: LayoutLoad = async ({ data }) => {
export const load: LayoutLoad = ({ data }) => {
const { email } = data;
if (email) {
signedIn.set(true);
@@ -2,7 +2,7 @@
//
// SPDX-License-Identifier: MPL-2.0
export async function load({ url }) {
export function load({ url }) {
const error = url.searchParams.get('error');
return {
error
@@ -2,7 +2,7 @@
//
// SPDX-License-Identifier: MPL-2.0
export async function load({ url }) {
export function load({ url }) {
const token = url.searchParams.get('token');
return {
+1 -1
View File
@@ -18,6 +18,6 @@ export async function load({ parent, url }) {
return {
game_pin: pin === null ? '' : pin,
game_token: token === null ? '' : token,
auto_connect: auto_connect
auto_connect
};
}
+1 -1
View File
@@ -4,7 +4,7 @@
import type { RequestHandler } from '@sveltejs/kit';
export const GET: RequestHandler = async () => {
export const GET: RequestHandler = () => {
return new Response(undefined, {
status: 301,
headers: {
@@ -13,7 +13,7 @@ export const load = async ({ params, parent }) => {
} else if (res.status === 200) {
const quiz = await res.json();
return {
quiz: quiz,
quiz,
logged_in: Boolean(email)
};
} else {