cron
travis-ci-com
568 of 924 branches covered (61.47%)
Branch coverage included in aggregate %.
1181 of 1316 relevant lines covered (89.74%)
49.2 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 |
} |