travis-ci-com
362 of 587 branches covered (61.67%)
Branch coverage included in aggregate %.
1446 of 1676 relevant lines covered (86.28%)
39.18 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 |
} |