mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-30 18:51:45 +00:00
chore: Enable "curly" rule to avoid single-statement if confusion/errors.
This commit is contained in:
@@ -13,7 +13,9 @@ function error(message: string): SafeParseResult {
|
||||
export function emptyPluginConfigSchema(): OpenClawPluginConfigSchema {
|
||||
return {
|
||||
safeParse(value: unknown): SafeParseResult {
|
||||
if (value === undefined) return { success: true, data: undefined };
|
||||
if (value === undefined) {
|
||||
return { success: true, data: undefined };
|
||||
}
|
||||
if (!value || typeof value !== "object" || Array.isArray(value)) {
|
||||
return error("expected config object");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user