mirror of
https://github.com/shelljs/shelljs.git
synced 2026-01-18 16:03:37 +00:00
This fixes #795 (actually, workarounds it.) For detail, please refer to the issue.
This commit is contained in:
parent
9035b27403
commit
d7b6a1f378
@ -79,6 +79,10 @@ function _ls(options, paths) {
|
||||
stat = options.link ? common.statFollowLinks(p) : common.statNoFollowLinks(p);
|
||||
// follow links to directories by default
|
||||
if (stat.isSymbolicLink()) {
|
||||
/* istanbul ignore next */
|
||||
// workaround for https://github.com/shelljs/shelljs/issues/795
|
||||
// codecov seems to have a bug that miscalculate this block as uncovered.
|
||||
// but according to nyc report this block does get covered.
|
||||
try {
|
||||
var _stat = common.statFollowLinks(p);
|
||||
if (_stat.isDirectory()) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user