Skip to main content

Function: normalizeHistoryPruneLimit()

normalizeHistoryPruneLimit(limit: number): number | null

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

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.