This commit is contained in:
Yasuhiro Matsumoto 2024-11-23 17:33:01 +09:00 committed by fiatjaf_
parent 9d619ddf00
commit 491a094e07

View File

@ -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
}