mirror of
https://github.com/fiatjaf/nak.git
synced 2025-08-13 14:30:47 -04:00
close ch
This commit is contained in:
committed by
fiatjaf_
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
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user