mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-18 18:47:28 +00:00
fix: satisfy lint curly rule (#6310)
* fix: satisfy lint curly rule * docs: apply oxfmt formatting
This commit is contained in:
@@ -11,7 +11,9 @@ export type ContextWindowInfo = {
|
||||
};
|
||||
|
||||
function normalizePositiveInt(value: unknown): number | null {
|
||||
if (typeof value !== "number" || !Number.isFinite(value)) return null;
|
||||
if (typeof value !== "number" || !Number.isFinite(value)) {
|
||||
return null;
|
||||
}
|
||||
const int = Math.floor(value);
|
||||
return int > 0 ? int : null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user