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