mirror of
https://github.com/fiatjaf/nak.git
synced 2024-11-25 00:59:08 -05:00
close ch
This commit is contained in:
parent
9d619ddf00
commit
491a094e07
|
@ -70,7 +70,9 @@ func getStdinLinesOrArgumentsFromSlice(args []string) chan string {
|
|||
|
||||
// try the stdin
|
||||
multi := make(chan string)
|
||||
writeStdinLinesOrNothing(multi)
|
||||
if !writeStdinLinesOrNothing(multi) {
|
||||
close(multi)
|
||||
}
|
||||
return multi
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user