From 6f59de0294f064109c1f661b9de32a9b3fd7893a Mon Sep 17 00:00:00 2001 From: Francisco Carriedo Date: Tue, 22 Jul 2014 12:16:50 -0700 Subject: [PATCH] pkg/units: Remove unused named returns Remove named returns since not used in function body. Might prevent potential subtle bugs. Docker-DCO-1.1-Signed-off-by: Francisco Carriedo (github: fcarriedo) --- units/size.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/units/size.go b/units/size.go index e0eec3e..1f77d60 100644 --- a/units/size.go +++ b/units/size.go @@ -61,7 +61,7 @@ func FromHumanSize(size string) (int64, error) { // in bytes, kibibytes, mebibytes, gibibytes, or tebibytes and // returns the number of bytes, or -1 if the string is unparseable. // Units are case-insensitive, and the 'b' suffix is optional. -func RAMInBytes(size string) (bytes int64, err error) { +func RAMInBytes(size string) (int64, error) { re, error := regexp.Compile("^(\\d+)([kKmMgGtT])?[bB]?$") if error != nil { return -1, error