Remove unnecessary return statements
Signed-off-by: charpty <charpty@gmail.com>
This commit is contained in:
parent
aed9670c57
commit
a3eeb76fe3
@ -2866,7 +2866,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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user