Skip to content

Commit 3691a86

Browse files
committed
fmt
1 parent a85a41a commit 3691a86

File tree

2 files changed

+14
-14
lines changed
  • apps/desktop/src/routes/(window-chrome)/settings
  • crates/recording/src/output_pipeline

2 files changed

+14
-14
lines changed

apps/desktop/src/routes/(window-chrome)/settings/feedback.tsx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -131,18 +131,18 @@ export default function FeedbackTab() {
131131
}
132132
>
133133
{(diag) => {
134-
const d = diag();
134+
const d = diag() as Record<string, unknown>;
135135
const osVersion =
136136
"macosVersion" in d
137-
? d.macosVersion
137+
? (d.macosVersion as { displayName: string } | null)
138138
: "windowsVersion" in d
139-
? d.windowsVersion
139+
? (d.windowsVersion as { displayName: string } | null)
140140
: null;
141141
const captureSupported =
142142
"screenCaptureSupported" in d
143-
? d.screenCaptureSupported
143+
? (d.screenCaptureSupported as boolean)
144144
: "graphicsCaptureSupported" in d
145-
? d.graphicsCaptureSupported
145+
? (d.graphicsCaptureSupported as boolean)
146146
: false;
147147
return (
148148
<div class="space-y-3 text-sm">
@@ -153,7 +153,7 @@ export default function FeedbackTab() {
153153
Operating System
154154
</p>
155155
<p class="text-gray-10 bg-gray-2 px-2 py-1.5 rounded font-mono text-xs">
156-
{(ver() as { displayName: string }).displayName}
156+
{ver().displayName}
157157
</p>
158158
</div>
159159
)}
@@ -175,13 +175,13 @@ export default function FeedbackTab() {
175175
</div>
176176
</div>
177177

178-
<Show when={d.availableEncoders.length > 0}>
178+
<Show when={(d.availableEncoders as string[])?.length > 0}>
179179
<div class="space-y-1">
180180
<p class="text-gray-11 font-medium">
181181
Available Encoders
182182
</p>
183183
<div class="flex gap-1.5 flex-wrap">
184-
<For each={d.availableEncoders}>
184+
<For each={d.availableEncoders as string[]}>
185185
{(encoder) => (
186186
<span class="px-2 py-1 bg-gray-2 rounded text-xs text-gray-10 font-mono">
187187
{encoder}

crates/recording/src/output_pipeline/core.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -72,12 +72,12 @@ impl TimestampAnomalyTracker {
7272
let raw_duration = Duration::from_secs_f64(signed_secs);
7373
let adjusted = raw_duration.saturating_add(self.accumulated_compensation);
7474

75-
if let Some(last) = self.last_valid_duration {
76-
if let Some(forward_jump) = adjusted.checked_sub(last) {
77-
let jump_secs = forward_jump.as_secs_f64();
78-
if jump_secs > LARGE_FORWARD_JUMP_SECS {
79-
return self.handle_forward_jump(last, adjusted, jump_secs);
80-
}
75+
if let Some(last) = self.last_valid_duration
76+
&& let Some(forward_jump) = adjusted.checked_sub(last)
77+
{
78+
let jump_secs = forward_jump.as_secs_f64();
79+
if jump_secs > LARGE_FORWARD_JUMP_SECS {
80+
return self.handle_forward_jump(last, adjusted, jump_secs);
8181
}
8282
}
8383

0 commit comments

Comments
 (0)