Skip to content
This repository has been archived by the owner on Apr 17, 2024. It is now read-only.

Commit

Permalink
Simplify code
Browse files Browse the repository at this point in the history
Signed-off-by: Joffrey F <joffrey@docker.com>
  • Loading branch information
shin- committed Oct 11, 2017
1 parent 4766108 commit 295730c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions libmachine/mcnutils/b2d.go
Original file line number Diff line number Diff line change
Expand Up @@ -305,9 +305,7 @@ func (b *b2dISO) version() (string, error) {
return "", err
}

fullVersion := string(isoMetadata)

trimmedVersion := strings.TrimSpace( fullVersion )
trimmedVersion := strings.TrimSpace(string(isoMetadata))

versionIndex := strings.Index(trimmedVersion, versionPrefix)
if versionIndex == -1 {
Expand Down

0 comments on commit 295730c

Please sign in to comment.