Skip to content

Commit

Permalink
Update main.go
Browse files Browse the repository at this point in the history
Making requested changes.
  • Loading branch information
award28 authored Feb 13, 2019
1 parent a976530 commit 860d91e
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,15 +85,11 @@ func main() {
}
var coverageFloat float64

if *tagsFlag != "" {

}

coverageCommand := ""
if *coverageCommandFlag != "" {
coverageCommand = *coverageCommandFlag
if *tagsFlag != "" {
log.Println("Warning: When the covercmd is used the tags flag will be ignored.")
log.Println("Warning: When the covercmd flag is used the tags flag will be ignored.")
}
} else if *tagsFlag != "" {
coverageCommand = "go test ./... -tags \"" + *tagsFlag + "\" -coverprofile=coverage.out && go tool cover -func=coverage.out"
Expand Down

0 comments on commit 860d91e

Please sign in to comment.