Skip to content

Commit

Permalink
re: simplify logic
Browse files Browse the repository at this point in the history
  • Loading branch information
cybardev committed Apr 1, 2024
1 parent 6e840e9 commit d06fe34
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions cmd/ytgo/yt.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"strings"
)

const VERSION string = "v3.0.12"
const VERSION string = "v3.0.13"

const (
C_RED string = "\x1b[31m"
Expand Down Expand Up @@ -60,13 +60,12 @@ func main() {
if err != nil {
log.Fatalln(err)
} else if v == nil {
return
}
if d {
fmt.Println(v.Id.URL())
return
} else if d {
fmt.Println(v.Id.URL())
} else {
err = v.Play(m)
}
err = v.Play(m)
if err != nil {
log.Fatalln(err)
}
Expand Down

0 comments on commit d06fe34

Please sign in to comment.