push
travis-ci-com
387 of 636 branches covered (60.85%)
Branch coverage included in aggregate %.
1456 of 1710 relevant lines covered (85.15%)
56.29 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 |
} |