Permalink
Browse files

Simplify code

Signed-off-by: Joffrey F <joffrey@docker.com>
  • Loading branch information...
shin- committed Oct 11, 2017
1 parent 4766108 commit 295730c547000cdf617fe6a07877febe1193c473
Showing with 1 addition and 3 deletions.
  1. +1 −3 libmachine/mcnutils/b2d.go
@@ -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 {

0 comments on commit 295730c

Please sign in to comment.