Skip to content

Commit f3c9457

Browse files
committed
More lints
1 parent 4b0aefe commit f3c9457

2 files changed

Lines changed: 4 additions & 7 deletions

File tree

snapo-app-mac/Snap-O/NetworkInspector/JSONOutlineView.swift

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -337,13 +337,11 @@ private extension JSONOutlineNode {
337337

338338
func collectStringNodeIDs(includeSelf: Bool) -> Set<String> {
339339
switch value {
340+
case .string where includeSelf:
341+
Set([id])
340342
case .string:
341-
includeSelf ? Set([id]) : Set<String>()
342-
case .object(let children):
343-
children.reduce(into: Set<String>()) { result, child in
344-
result.formUnion(child.collectStringNodeIDs(includeSelf: true))
345-
}
346-
case .array(let children):
343+
Set<String>()
344+
case .object(let children), .array(let children):
347345
children.reduce(into: Set<String>()) { result, child in
348346
result.formUnion(child.collectStringNodeIDs(includeSelf: true))
349347
}

snapo-link-android/link-core/src/main/java/com/openai/snapo/link/core/SnapOLinkServer.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ import kotlinx.coroutines.delay
2323
import kotlinx.coroutines.isActive
2424
import kotlinx.coroutines.launch
2525
import kotlinx.coroutines.sync.Mutex
26-
import kotlinx.coroutines.sync.tryLock
2726
import kotlinx.coroutines.sync.withLock
2827
import java.io.BufferedWriter
2928
import java.io.ByteArrayOutputStream

0 commit comments

Comments
 (0)