Skip to main content

Function: normalizeHistoryPruneLimit()

function normalizeHistoryPruneLimit(limit: number): number | null;

Defined in: electron/services/database/utils/maintenance/historyPruneLimit.ts:13

Normalizes a history prune limit into a positive integer.

Parameters​

limit​

number

Returns​

number | null

A positive integer when pruning should occur, or null when the provided limit is invalid / disables pruning.