Skip to content

Commit

Permalink
fix: const to let in "the <form> element" (#546)
Browse files Browse the repository at this point in the history
* changed id from const to let

* more const to let changes
  • Loading branch information
golfomania authored Dec 20, 2023
1 parent 3c3af89 commit c8fa635
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as db from '$lib/server/database.js';

export function load({ cookies }) {
const id = cookies.get('userid');
let id = cookies.get('userid');

if (!id) {
id = crypto.randomUUID();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as db from '$lib/server/database.js';

export function load({ cookies }) {
const id = cookies.get('userid');
let id = cookies.get('userid');

if (!id) {
id = crypto.randomUUID();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as db from '$lib/server/database.js';

export function load({ cookies }) {
const id = cookies.get('userid');
let id = cookies.get('userid');

if (!id) {
id = crypto.randomUUID();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { fail } from '@sveltejs/kit';
import * as db from '$lib/server/database.js';

export function load({ cookies }) {
const id = cookies.get('userid');
let id = cookies.get('userid');

if (!id) {
id = crypto.randomUUID();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { fail } from '@sveltejs/kit';
import * as db from '$lib/server/database.js';

export function load({ cookies }) {
const id = cookies.get('userid');
let id = cookies.get('userid');

if (!id) {
id = crypto.randomUUID();
Expand Down

1 comment on commit c8fa635

@vercel
Copy link

@vercel vercel bot commented on c8fa635 Dec 20, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.