fix: address code review feedback

- Add parentheses for clearer operator precedence in reduction calculation
- Remove magic number comments in tests for better maintainability

Co-authored-by: samanhappy <2755122+samanhappy@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2025-12-31 15:15:36 +00:00
parent d25a85a1bf
commit f280cd593d
2 changed files with 7 additions and 7 deletions

View File

@@ -196,7 +196,7 @@ ${content}`;
};
}
const reductionPercent = ((originalLength - compressedLength) / originalLength * 100).toFixed(1);
const reductionPercent = (((originalLength - compressedLength) / originalLength) * 100).toFixed(1);
console.log(`Compressed output: ${originalLength} -> ${compressedLength} chars (${reductionPercent}% reduction)`);
return {