chore(clean up): remove unused imports, unnecessary object impls, concurrency/coroutine issues, trailing commas, etc.
This commit is contained in:
@@ -51,7 +51,7 @@ fun main(args: Array<String>) {
|
||||
log.debug("got input state after reducers: {}", next.input)
|
||||
log.debug(
|
||||
"got session state after reducers: {}",
|
||||
next.sessions.sessions.firstOrNull() { it.status != "COMPLETED" },
|
||||
next.sessions.sessions.firstOrNull { it.status != "COMPLETED" },
|
||||
)
|
||||
state = next
|
||||
effects.forEach { effect ->
|
||||
|
||||
@@ -71,7 +71,7 @@ private fun createRowsForNavigate(
|
||||
hasSession: Boolean,
|
||||
): Pair<Line?, Line?> {
|
||||
val row1Line = Line.from(Span.styled(" ↑↓ sessions enter select", dimStyle))
|
||||
val hints = buildList<String> {
|
||||
val hints = buildList {
|
||||
add("$sessionName · navigate")
|
||||
add("tab router")
|
||||
if (hasApproval) {
|
||||
@@ -96,7 +96,7 @@ private fun createRowsForRouter(
|
||||
} else {
|
||||
Line.from(Span.raw("▌ "), Span.styled("Ask anything…", dimStyle))
|
||||
}
|
||||
val hints = buildList<String> {
|
||||
val hints = buildList {
|
||||
add("$sessionName · router")
|
||||
add("tab navigate")
|
||||
if (hasApproval) {
|
||||
|
||||
Reference in New Issue
Block a user