cron
travis-ci-com
285 of 450 branches covered (63.33%)
Branch coverage included in aggregate %.
1269 of 1449 relevant lines covered (87.58%)
38.93 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 |
} |