From 795e98bc2e7a1ddd26b04d7cc6f0c10bf472b122 Mon Sep 17 00:00:00 2001 From: fiatjaf Date: Wed, 8 Nov 2023 22:54:52 -0300 Subject: [PATCH] close channel in getStdinLinesOrFirstArgument() --- helpers.go | 1 + 1 file changed, 1 insertion(+) diff --git a/helpers.go b/helpers.go index 2497352..8960ae1 100644 --- a/helpers.go +++ b/helpers.go @@ -39,6 +39,7 @@ func getStdinLinesOrFirstArgument(c *cli.Context) chan string { if target != "" { single := make(chan string, 1) single <- target + close(single) return single }