File tree Expand file tree Collapse file tree
snapo-app-mac/Snap-O/NetworkInspector
snapo-link-android/link-core/src/main/java/com/openai/snapo/link/core Expand file tree Collapse file tree Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff line change @@ -23,7 +23,6 @@ import kotlinx.coroutines.delay
2323import kotlinx.coroutines.isActive
2424import kotlinx.coroutines.launch
2525import kotlinx.coroutines.sync.Mutex
26- import kotlinx.coroutines.sync.tryLock
2726import kotlinx.coroutines.sync.withLock
2827import java.io.BufferedWriter
2928import java.io.ByteArrayOutputStream
You can’t perform that action at this time.
0 commit comments