mirror of
https://github.com/fiatjaf/nak.git
synced 2024-11-22 08:19:06 -05:00
close channel in getStdinLinesOrFirstArgument()
This commit is contained in:
parent
4fdd80670a
commit
795e98bc2e
|
@ -39,6 +39,7 @@ func getStdinLinesOrFirstArgument(c *cli.Context) chan string {
|
||||||
if target != "" {
|
if target != "" {
|
||||||
single := make(chan string, 1)
|
single := make(chan string, 1)
|
||||||
single <- target
|
single <- target
|
||||||
|
close(single)
|
||||||
return single
|
return single
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user