push
travis-ci-com
377 of 616 branches covered (61.2%)
Branch coverage included in aggregate %.
1 of 1 new or added line in 1 file covered. (100.0%)
1474 of 1718 relevant lines covered (85.8%)
36.9 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 |
} |