(bytes: number | null)
| 225 | } |
| 226 | |
| 227 | function formatBytes(bytes: number | null) { |
| 228 | if (bytes === null) { |
| 229 | return "n/a"; |
| 230 | } |
| 231 | return `${(bytes / 1024 / 1024).toFixed(1)} MiB`; |
| 232 | } |
| 233 | |
| 234 | function makePatch(fileIndex: number, hunksPerFile: number, linesPerHunk: number) { |
| 235 | const chunks: string[] = []; |