travis-ci-com
393 of 648 branches covered (60.65%)
Branch coverage included in aggregate %.
1430 of 1684 relevant lines covered (84.92%)
57.04 hits per line
1 |
import * as fs from 'fs'; |
|
2 |
|
12✔ |
3 |
export function unlinkSafe(path: string): boolean { |
12✔ |
4 |
try {
|
|
5 |
fs.unlinkSync(path); |
63✔ |
6 |
|
63✔ |
7 |
return true; |
63✔ |
8 |
} catch {
|
|
9 |
return false; |
|
10 |
} |
× |
11 |
} |