From 2c794b833a48c6446dfb46c59fc4e54b1e3f2e67 Mon Sep 17 00:00:00 2001 From: whoswhip Date: Fri, 6 Mar 2026 20:13:56 -0500 Subject: [PATCH] style: format via prettier and csharpier --- SharpbinV3.Client/src/lib/server/api.ts | 6 +++--- SharpbinV3.Server/Services/EmailService.cs | 8 ++------ 2 files changed, 5 insertions(+), 9 deletions(-) diff --git a/SharpbinV3.Client/src/lib/server/api.ts b/SharpbinV3.Client/src/lib/server/api.ts index d49ce78..c590aa0 100644 --- a/SharpbinV3.Client/src/lib/server/api.ts +++ b/SharpbinV3.Client/src/lib/server/api.ts @@ -2,6 +2,6 @@ import { env } from '$env/dynamic/private'; export const apiUrl = env.VITE_API_URL ?? 'http://localhost:5050'; export const viewInternalApiKey = - env.NODE_ENV === 'development' - ? 'cccdd42d9f2f648493e402f1da7c855ea798ad510e6bb9ea712dd7bed838e58' - : env.VIEW_INTERNAL_API_KEY ?? env.View_HMAC_Internal_API_Key ?? ''; \ No newline at end of file + env.NODE_ENV === 'development' + ? 'cccdd42d9f2f648493e402f1da7c855ea798ad510e6bb9ea712dd7bed838e58' + : (env.VIEW_INTERNAL_API_KEY ?? env.View_HMAC_Internal_API_Key ?? ''); diff --git a/SharpbinV3.Server/Services/EmailService.cs b/SharpbinV3.Server/Services/EmailService.cs index e3f1d44..c7befdd 100644 --- a/SharpbinV3.Server/Services/EmailService.cs +++ b/SharpbinV3.Server/Services/EmailService.cs @@ -1,9 +1,9 @@ +using System.Threading.Channels; using MailKit.Net.Smtp; using MailKit.Security; using Microsoft.Extensions.Options; using MimeKit; using SharpbinV3.Server.Settings; -using System.Threading.Channels; namespace SharpbinV3.Server.Services { @@ -11,11 +11,7 @@ namespace SharpbinV3.Server.Services { private readonly EmailSettings settings = emailSettings.Value; private readonly Channel queue = Channel.CreateUnbounded( - new UnboundedChannelOptions - { - SingleReader = true, - SingleWriter = false, - } + new UnboundedChannelOptions { SingleReader = true, SingleWriter = false } ); public async Task SendAsync(string to, string subject, string body)