mirror of
https://github.com/fiatjaf/nak.git
synced 2025-08-31 22:10:47 -04:00
close channel in getStdinLinesOrFirstArgument()
This commit is contained in:
@@ -39,6 +39,7 @@ func getStdinLinesOrFirstArgument(c *cli.Context) chan string {
|
||||
if target != "" {
|
||||
single := make(chan string, 1)
|
||||
single <- target
|
||||
close(single)
|
||||
return single
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user