cron
travis-ci-com
365 of 589 branches covered (61.97%)
Branch coverage included in aggregate %.
1446 of 1676 relevant lines covered (86.28%)
38.97 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 |
} |