This commit is contained in:
Yasuhiro Matsumoto
2024-11-23 08:14:13 -03:00
committed by fiatjaf_
parent 9d619ddf00
commit 491a094e07
+3 -1
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
}