mirror of
https://github.com/samanhappy/mcphub.git
synced 2026-01-01 12:18:39 -05:00
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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user