Преглед изворни кода

Merge pull request #7165 from fcarriedo/remove-named-returns

pkg/units: Remove unused named returns
Victor Vieux пре 11 година
родитељ
комит
314bf61889
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      pkg/units/size.go

+ 1 - 1
pkg/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