mirror of
https://github.com/claude-code-best/claude-code.git
synced 2026-06-23 08:45:50 +00:00
style: 修复所有 lint 错误,覆盖 @ant forked 代码
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -111,6 +111,7 @@ function isDefined(n: number): boolean {
|
||||
|
||||
// NaN-safe equality for layout-cache input comparison
|
||||
function sameFloat(a: number, b: number): boolean {
|
||||
// biome-ignore lint/suspicious/noSelfCompare: intentional NaN check (x !== x ↔ isNaN)
|
||||
return a === b || (a !== a && b !== b)
|
||||
}
|
||||
|
||||
@@ -2372,12 +2373,14 @@ function boundAxis(
|
||||
if (v > maxV.value) v = maxV.value
|
||||
} else if (maxU === 2) {
|
||||
const m = (maxV.value * owner) / 100
|
||||
// biome-ignore lint/suspicious/noSelfCompare: intentional NaN check
|
||||
if (m === m && v > m) v = m
|
||||
}
|
||||
if (minU === 1) {
|
||||
if (v < minV.value) v = minV.value
|
||||
} else if (minU === 2) {
|
||||
const m = (minV.value * owner) / 100
|
||||
// biome-ignore lint/suspicious/noSelfCompare: intentional NaN check
|
||||
if (m === m && v < m) v = m
|
||||
}
|
||||
return v
|
||||
|
||||
Reference in New Issue
Block a user