From ecbd831c2420498d885aa3b361d0d03e211691cc Mon Sep 17 00:00:00 2001 From: cybardev Date: Mon, 18 Nov 2024 00:19:01 -0400 Subject: [PATCH] re: make efficient use of labels --- cmd/ytgo/yt.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/cmd/ytgo/yt.go b/cmd/ytgo/yt.go index e3318d3..3e0df6f 100644 --- a/cmd/ytgo/yt.go +++ b/cmd/ytgo/yt.go @@ -56,10 +56,7 @@ func main() { } defer rl.Close() - query, err = rl.Readline() - if err != nil { - return // exit on EOF/SIGINT - } + goto endloop } else { query = strings.Join(flag.Args(), " ") }