diff --git a/src-tauri/src/web/auth.rs b/src-tauri/src/web/auth.rs
index 3b9afdf..ea07fc8 100644
--- a/src-tauri/src/web/auth.rs
+++ b/src-tauri/src/web/auth.rs
@@ -20,7 +20,7 @@ pub async fn require_token(
// Check Authorization header
if let Some(auth_header) = request.headers().get("authorization") {
if let Ok(auth_str) = auth_header.to_str() {
- if auth_str.strip_prefix("Bearer ").map_or(false, |t| t == token) {
+ if auth_str.strip_prefix("Bearer ").is_some_and(|t| t == token) {
return next.run(request).await;
}
}
diff --git a/src/app/commit/page.tsx b/src/app/commit/page.tsx
index 93d6ba4..36bc4eb 100644
--- a/src/app/commit/page.tsx
+++ b/src/app/commit/page.tsx
@@ -3,7 +3,10 @@
import { Suspense, useCallback, useEffect, useState } from "react"
import { useSearchParams } from "next/navigation"
import { useTranslations } from "next-intl"
-const getCurrentWindow = async () => { const m = await import("@tauri-apps/api/window"); return m.getCurrentWindow() }
+const getCurrentWindow = async () => {
+ const m = await import("@tauri-apps/api/window")
+ return m.getCurrentWindow()
+}
import { Loader2 } from "lucide-react"
import { CommitWorkspace } from "@/components/layout/commit-dialog"
import { AppTitleBar } from "@/components/layout/app-title-bar"
@@ -74,9 +77,7 @@ function CommitPageInner() {
}
}, [hasValidFolderId, normalizedFolderId])
- const pageTitle = folder
- ? `${t("title")} · ${folder.name}`
- : t("title")
+ const pageTitle = folder ? `${t("title")} · ${folder.name}` : t("title")
useEffect(() => {
document.title = `${pageTitle} - codeg`
diff --git a/src/app/login/page.tsx b/src/app/login/page.tsx
index a3c74b1..92cc87f 100644
--- a/src/app/login/page.tsx
+++ b/src/app/login/page.tsx
@@ -73,9 +73,7 @@ export default function LoginPage() {
/>
- {error && (
-
{error}
- )}
+ {error && {error}
}