cron
travis-ci-com
389 of 637 branches covered (61.07%)
Branch coverage included in aggregate %.
1461 of 1715 relevant lines covered (85.19%)
37.7 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 |
} |