From 695aa5855aa460cbe201ebce5f4e793fba076011 Mon Sep 17 00:00:00 2001 From: Sritan Motati Date: Thu, 13 Feb 2025 17:10:39 -0500 Subject: [PATCH] more linting :sob: --- backend/health/views.py | 1 - frontend/pages/health.tsx | 8 ++++---- frontend/utils/auth.tsx | 2 +- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/backend/health/views.py b/backend/health/views.py index d726c3a..ba5bb8f 100644 --- a/backend/health/views.py +++ b/backend/health/views.py @@ -6,7 +6,6 @@ class HealthView(View): def get(self, request): - """ Health check endpoint to confirm the backend is running. --- diff --git a/frontend/pages/health.tsx b/frontend/pages/health.tsx index 655eb6f..611d3fc 100644 --- a/frontend/pages/health.tsx +++ b/frontend/pages/health.tsx @@ -1,16 +1,16 @@ -import { GetServerSideProps } from 'next'; +import { GetServerSideProps } from "next"; const HealthPage = () => { return
OK
; }; export const getServerSideProps: GetServerSideProps = async ({ req }) => { - const userAgent = req.headers['user-agent'] || ''; + const userAgent = req.headers["user-agent"] || ""; - if (userAgent !== 'service-status') { + if (userAgent !== "service-status") { return { redirect: { - destination: '/', + destination: "/", permanent: false, }, }; diff --git a/frontend/utils/auth.tsx b/frontend/utils/auth.tsx index bd5ded5..e40ae3d 100644 --- a/frontend/utils/auth.tsx +++ b/frontend/utils/auth.tsx @@ -39,7 +39,7 @@ export function withAuth(getServerSidePropsFunc: GetServerSidePropsFunc) { return async ( ctx: GetServerSidePropsContext ): Promise> => { - if (ctx.resolvedUrl === '/health') { + if (ctx.resolvedUrl === "/health") { const wrapped = await getServerSidePropsFunc(ctx); const casted = convertGetServerSidePropsResult(wrapped);