[clang-tidy] do not use else after return
Found with readability-else-after-return Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
parent
bd89499e07
commit
042f62dfc5
63 changed files with 372 additions and 300 deletions
|
@ -73,9 +73,9 @@ int get_terminal_stdfd(void)
|
|||
{
|
||||
if (isatty(STDIN_FILENO))
|
||||
return STDIN_FILENO;
|
||||
else if (isatty(STDOUT_FILENO))
|
||||
if (isatty(STDOUT_FILENO))
|
||||
return STDOUT_FILENO;
|
||||
else if (isatty(STDERR_FILENO))
|
||||
if (isatty(STDERR_FILENO))
|
||||
return STDERR_FILENO;
|
||||
|
||||
return -EINVAL;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue