travis-ci-com
365 of 594 branches covered (61.45%)
Branch coverage included in aggregate %.
1361 of 1582 relevant lines covered (86.03%)
40.51 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 |
} |