cron
travis-ci-com
305 of 483 branches covered (63.15%)
Branch coverage included in aggregate %.
1178 of 1358 relevant lines covered (86.75%)
38.5 hits per line
1 |
import * as fs from 'fs'; |
8✔ |
2 |
|
|
3 |
export function unlinkSafe(path: string): boolean { |
8✔ |
4 |
try {
|
42✔ |
5 |
fs.unlinkSync(path); |
42✔ |
6 |
|
|
7 |
return true; |
42✔ |
8 |
} catch {
|
|
9 |
return false; |
× |
10 |
} |
|
11 |
} |