Remove named returns since not used in function body. Might prevent
potential subtle bugs.
Docker-DCO-1.1-Signed-off-by: Francisco Carriedo <fcarriedo@gmail.com> (github: fcarriedo)
| ... | ... |
@@ -61,7 +61,7 @@ func FromHumanSize(size string) (int64, error) {
|
| 61 | 61 |
// in bytes, kibibytes, mebibytes, gibibytes, or tebibytes and |
| 62 | 62 |
// returns the number of bytes, or -1 if the string is unparseable. |
| 63 | 63 |
// Units are case-insensitive, and the 'b' suffix is optional. |
| 64 |
-func RAMInBytes(size string) (bytes int64, err error) {
|
|
| 64 |
+func RAMInBytes(size string) (int64, error) {
|
|
| 65 | 65 |
re, error := regexp.Compile("^(\\d+)([kKmMgGtT])?[bB]?$")
|
| 66 | 66 |
if error != nil {
|
| 67 | 67 |
return -1, error |