(left: FooterPatch | undefined, right: FooterPatch | undefined)
| 43 | } |
| 44 | |
| 45 | function mergePatch(left: FooterPatch | undefined, right: FooterPatch | undefined) { |
| 46 | if (!left) { |
| 47 | return right |
| 48 | } |
| 49 | |
| 50 | if (!right) { |
| 51 | return left |
| 52 | } |
| 53 | |
| 54 | return { |
| 55 | ...left, |
| 56 | ...right, |
| 57 | } |
| 58 | } |
| 59 | |
| 60 | function active(data: SessionData) { |
| 61 | return data.part.size > 0 || data.tools.size > 0 |
no outgoing calls
no test coverage detected