fix(lint): use explicit safe type conversions for gosec
Use separate variables with explicit else branches to make type conversions safe and satisfy gosec integer overflow checks.
This commit is contained in:
Use separate variables with explicit else branches to make type conversions safe and satisfy gosec integer overflow checks.