mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-08 00:41:25 +00:00
chore: Enable "curly" rule to avoid single-statement if confusion/errors.
This commit is contained in:
@@ -25,7 +25,9 @@ function resolveLocation(location: NormalizedLocation): ResolvedLocation {
|
||||
}
|
||||
|
||||
function formatAccuracy(accuracy?: number): string {
|
||||
if (!Number.isFinite(accuracy)) return "";
|
||||
if (!Number.isFinite(accuracy)) {
|
||||
return "";
|
||||
}
|
||||
return ` ±${Math.round(accuracy ?? 0)}m`;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user