(commit: StreamCommit)
| 265 | } |
| 266 | |
| 267 | function compactCommit(commit: StreamCommit): StreamCommit { |
| 268 | if (!commit.part) { |
| 269 | return commit |
| 270 | } |
| 271 | |
| 272 | return { |
| 273 | ...commit, |
| 274 | part: compactToolPart(commit.part), |
| 275 | } |
| 276 | } |
| 277 | |
| 278 | function stateUpdatedAt(part: ToolPart) { |
| 279 | if (!("time" in part.state)) { |
nothing calls this directly
no test coverage detected