src/.clang-tidy | 2 +- src/nnn.c | 8 ++------ diff --git a/src/.clang-tidy b/src/.clang-tidy index ef188b7b6c60b9097c30ff3353a04e48a215438c..60ee2616d1018f1a6fd4c8a098a39512781ab724 100644 --- a/src/.clang-tidy +++ b/src/.clang-tidy @@ -11,5 +11,5 @@ value: '_t' - key: fuchsia-restrict-system-includes.Includes value: '*,-stdint.h,-stdbool.h' - key: readability-function-size.StatementThreshold - value: '910' + value: '915' ... diff --git a/src/nnn.c b/src/nnn.c index b847eeb9dd29a5c55fc24f50a6a2dd596edbaad7..0c2b8107a7813b32df68c8422bbcf35a809a9587 100644 --- a/src/nnn.c +++ b/src/nnn.c @@ -6914,8 +6914,6 @@ goto begin; } pent = &pdents[cur]; - r = FALSE; - if (g_state.selbm) { S_ISLNK(pent->mode) ? (realpath(pent->name, newpath) && xstrsncpy(path, lastdir, PATH_MAX)) @@ -6933,8 +6931,7 @@ printwarn(&presel); goto nochange; } - cdprep(lastdir, lastname, path, newpath) - ? (presel = FILTER) : (watch = TRUE); + cdprep(lastdir, lastname, path, newpath) ? (presel = FILTER) : (watch = TRUE); goto begin; } @@ -6963,8 +6960,7 @@ rundir[0] = '\0'; clearfilter(); if (chdir(path) == -1 - || !run_plugin(&path, pent->name, - runfile, &lastname, &lastdir)) { + || !run_plugin(&path, pent->name, runfile, &lastname, &lastdir)) { DPRINTF_S("plugin failed!"); }