chore: generate

This commit is contained in:
opencode-agent[bot]
2026-05-11 01:55:22 +00:00
parent 3c6be604ec
commit 1c49b2ed67
2 changed files with 2 additions and 7 deletions

View File

@@ -71,10 +71,7 @@ export const totalTokens = (
* counts). If `subtrahend` is `undefined`, returns `total` unchanged. The
* provider-native breakdown stays available on `Usage.native` for debugging.
*/
export const subtractTokens = (
total: number | undefined,
subtrahend: number | undefined,
): number | undefined => {
export const subtractTokens = (total: number | undefined, subtrahend: number | undefined): number | undefined => {
if (total === undefined) return undefined
if (subtrahend === undefined) return total
return Math.max(0, total - subtrahend)