Skip to content

Commit

Permalink
Merge pull request #2 from astralkn/refactoring
Browse files Browse the repository at this point in the history
Fixed unauth post bug
  • Loading branch information
astralkn authored Apr 2, 2020
2 parents 84ff793 + f87b3b6 commit 371df02
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,11 @@ func main() {
log.Printf("gotestmng version %s\n", version)
os.Exit(0)
}
if opts.Post == true && opts.GitUnAuth == false {
log.Error("can not post issues without authentication")
os.Exit(1)
if opts.Post == true {
if opts.GitUnAuth == true {
log.Error("can not post issues without authentication")
os.Exit(1)
}
}
err := run(opts)
switch err.(type) {
Expand Down

0 comments on commit 371df02

Please sign in to comment.