Unverified Commit 4cb5bd4e authored by Salvatore Sanfilippo's avatar Salvatore Sanfilippo Committed by GitHub
Browse files

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

Remove unnecessary return statements
parents 8d6b7861 0fd2b25c
...@@ -2920,7 +2920,6 @@ void bytesToHuman(char *s, unsigned long long n) { ...@@ -2920,7 +2920,6 @@ void bytesToHuman(char *s, unsigned long long n) {
if (n < 1024) { if (n < 1024) {
/* Bytes */ /* Bytes */
sprintf(s,"%lluB",n); sprintf(s,"%lluB",n);
return;
} else if (n < (1024*1024)) { } else if (n < (1024*1024)) {
d = (double)n/(1024); d = (double)n/(1024);
sprintf(s,"%.2fK",d); sprintf(s,"%.2fK",d);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment