Skip to content

Commit

Permalink
Merge pull request moby#7165 from fcarriedo/remove-named-returns
Browse files Browse the repository at this point in the history
pkg/units: Remove unused named returns
  • Loading branch information
vieux committed Jul 22, 2014
2 parents 0d118ff + 588090c commit 314bf61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/units/size.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 314bf61

Please sign in to comment.