cron
travis-ci-com
397 of 650 branches covered (61.08%)
Branch coverage included in aggregate %.
1438 of 1689 relevant lines covered (85.14%)
38.31 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 |
} |