style(swift): fix lint

This commit is contained in:
Peter Steinberger committed 2025-12-17 21:51:36 +01:00
1 parent 51bdf01e2e
commit 2b2376d4c0
5 files changed
+23 -13

No files matched your search

@@ -66,4 +66,3 @@ public struct ClawdisChatSessionsListResponse: Codable, Sendable {
public let defaults: ClawdisChatSessionsDefaults?
public let sessions: [ClawdisChatSessionEntry]
}
@@ -18,7 +18,9 @@ struct ChatSessionsSheet: View {
.font(.system(.body, design: .monospaced))
.lineLimit(1)
if let updatedAt = session.updatedAt, updatedAt > 0 {
Text(Date(timeIntervalSince1970: updatedAt / 1000).formatted(date: .abbreviated, time: .shortened))
Text(Date(timeIntervalSince1970: updatedAt / 1000).formatted(
date: .abbreviated,
time: .shortened))
.font(.caption)
.foregroundStyle(.secondary)
}
@@ -45,7 +45,8 @@ public final class ClawdisChatViewModel {
private var pendingToolCallsById: [String: ClawdisChatPendingToolCall] = [:] {
didSet {
self.pendingToolCalls = self.pendingToolCallsById.values.sorted { ($0.startedAt ?? 0) < ($1.startedAt ?? 0) }
self.pendingToolCalls = self.pendingToolCallsById.values
.sorted { ($0.startedAt ?? 0) < ($1.startedAt ?? 0) }
}
}