cron
travis-ci-com
385 of 637 branches covered (60.44%)
Branch coverage included in aggregate %.
1463 of 1726 relevant lines covered (84.76%)
37.6 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); |
48✔ |
6 |
|
48✔ |
7 |
return true; |
48✔ |
8 |
} catch {
|
|
9 |
return false; |
|
10 |
} |
× |
11 |
} |