mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-09 07:57:39 +00:00
chore: migrate to oxlint and oxfmt
Co-authored-by: Christoph Nakazawa <christoph.pojer@gmail.com>
This commit is contained in:
@@ -2,9 +2,7 @@ import { normalizeCommandBody } from "./commands-registry.js";
|
||||
|
||||
export type SendPolicyOverride = "allow" | "deny";
|
||||
|
||||
export function normalizeSendPolicyOverride(
|
||||
raw?: string | null,
|
||||
): SendPolicyOverride | undefined {
|
||||
export function normalizeSendPolicyOverride(raw?: string | null): SendPolicyOverride | undefined {
|
||||
const value = raw?.trim().toLowerCase();
|
||||
if (!value) return undefined;
|
||||
if (value === "allow" || value === "on") return "allow";
|
||||
|
||||
Reference in New Issue
Block a user