mirror of
https://github.com/jarun/nnn.git
synced 2024-11-28 13:51:31 +00:00
Simplify show details
This commit is contained in:
parent
71fbf80925
commit
5d1ca249f9
|
@ -2923,13 +2923,7 @@ nochange:
|
|||
break;
|
||||
|
||||
mkpath(path, dents[cur].name, newpath, PATH_MAX);
|
||||
|
||||
if (lstat(newpath, &sb) == -1) {
|
||||
dentfree(dents);
|
||||
errexit();
|
||||
}
|
||||
|
||||
if (!show_stats(newpath, dents[cur].name, &sb)) {
|
||||
if (lstat(newpath, &sb) == -1 || !show_stats(newpath, dents[cur].name, &sb)) {
|
||||
printwarn();
|
||||
goto nochange;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue