🚨 Fixed deepsource issues
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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
|
||||
};
|
||||
}
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user