Merge pull request #4820 from charpty/wip-serverc-simplify

Remove unnecessary return statements
This commit is contained in:
Salvatore Sanfilippo 2018-07-12 13:42:15 +02:00 committed by GitHub
commit 4cb5bd4e9d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2920,7 +2920,6 @@ void bytesToHuman(char *s, unsigned long long n) {
if (n < 1024) {
/* Bytes */
sprintf(s,"%lluB",n);
return;
} else if (n < (1024*1024)) {
d = (double)n/(1024);
sprintf(s,"%.2fK",d);