(contextLines?: number)
| 48 | } |
| 49 | |
| 50 | function getContextLines(contextLines?: number): number { |
| 51 | return typeof contextLines === 'number' |
| 52 | && Number.isSafeInteger(contextLines) |
| 53 | && contextLines >= 0 |
| 54 | ? contextLines |
| 55 | : DIFF_CONTEXT_DEFAULT |
| 56 | } |
| 57 | |
| 58 | // Pure function returns options with all properties. |
| 59 | export function normalizeDiffOptions( |
no outgoing calls
no test coverage detected