mirror of
https://github.com/redis/redis.git
synced 2026-04-21 03:01:35 -04:00
Merge pull request #4820 from charpty/wip-serverc-simplify
Remove unnecessary return statements
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user