mirror of
https://github.com/curl/curl.git
synced 2026-08-26 07:53:31 +03:00
Improve code readbility
... by removing the else branch after a return, break or continue. Closes #1310
This commit is contained in:
parent
db87bcfcf2
commit
66de563482
37 changed files with 405 additions and 496 deletions
|
|
@ -1096,8 +1096,7 @@ char *curl_maprintf(const char *format, ...)
|
|||
info.buffer[info.len] = 0; /* we terminate this with a zero byte */
|
||||
return info.buffer;
|
||||
}
|
||||
else
|
||||
return strdup("");
|
||||
return strdup("");
|
||||
}
|
||||
|
||||
char *curl_mvaprintf(const char *format, va_list ap_save)
|
||||
|
|
@ -1121,8 +1120,7 @@ char *curl_mvaprintf(const char *format, va_list ap_save)
|
|||
info.buffer[info.len] = 0; /* we terminate this with a zero byte */
|
||||
return info.buffer;
|
||||
}
|
||||
else
|
||||
return strdup("");
|
||||
return strdup("");
|
||||
}
|
||||
|
||||
static int storebuffer(int output, FILE *data)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue