Skip to content

Commit

Permalink
format lint
Browse files Browse the repository at this point in the history
Signed-off-by: Natalie Arellano <narellano@vmware.com>
  • Loading branch information
Yael Harel authored and natalieparellano committed Sep 24, 2020
1 parent 0dc4ca0 commit f65e9a5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cmd/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const (
// buildVersion is a display format of the version and build metadata in compliance with semver.
func buildVersion() string {
// noinspection GoBoolExpressions
if SCMCommit == "" || strings.Contains(Version, SCMCommit){
if SCMCommit == "" || strings.Contains(Version, SCMCommit) {
return Version
}

Expand Down
3 changes: 1 addition & 2 deletions tools/version/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import (
"regexp"
)


func main() {

// if the current branch is a release branch, parse the version number from the branch
Expand Down Expand Up @@ -39,4 +38,4 @@ func main() {
return
}
fmt.Println(matches[1] + "-" + matches[2] + "+" + matches[3])
}
}

0 comments on commit f65e9a5

Please sign in to comment.