cron
travis-ci-com
369 of 585 branches covered (63.08%)
Branch coverage included in aggregate %.
1396 of 1625 relevant lines covered (85.91%)
39.85 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 |
} |