push
travis-ci-com
374 of 620 branches covered (60.32%)
Branch coverage included in aggregate %.
1470 of 1736 relevant lines covered (84.68%)
37.68 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); |
42✔ |
6 |
|
42✔ |
7 |
return true; |
42✔ |
8 |
} catch {
|
|
9 |
return false; |
|
10 |
} |
× |
11 |
} |