cron
travis-ci-com
388 of 611 branches covered (63.5%)
Branch coverage included in aggregate %.
1354 of 1580 relevant lines covered (85.7%)
39.97 hits per line
1 |
import * as fs from 'fs'; |
8✔ |
2 |
|
|
3 |
export function unlinkSafe(path: string): boolean { |
8✔ |
4 |
try {
|
48✔ |
5 |
fs.unlinkSync(path); |
48✔ |
6 |
|
|
7 |
return true; |
48✔ |
8 |
} catch {
|
|
9 |
return false; |
× |
10 |
} |
|
11 |
} |