mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-09 01:48:28 +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 GroupActivationMode = "mention" | "always";
|
||||
|
||||
export function normalizeGroupActivation(
|
||||
raw?: string | null,
|
||||
): GroupActivationMode | undefined {
|
||||
export function normalizeGroupActivation(raw?: string | null): GroupActivationMode | undefined {
|
||||
const value = raw?.trim().toLowerCase();
|
||||
if (value === "mention") return "mention";
|
||||
if (value === "always") return "always";
|
||||
|
||||
Reference in New Issue
Block a user