diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2018-04-18 17:42:04 +0200 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2018-04-18 17:42:04 +0200 |
commit | 542c7e7101068a3d424ee73b8284e722b2ecaa07 (patch) | |
tree | 5cb239ce5892e8ccba1a906cd53428367bd59dc4 | |
parent | 4568b1f625977c4af109c099dfd98ff2f371ee3c (diff) |
Make stdin always available
Because we do not implement the store piping and pipe magic, the stdin
stream should always be available.
-rw-r--r-- | lib/core/libimagrt/src/runtime.rs | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/core/libimagrt/src/runtime.rs b/lib/core/libimagrt/src/runtime.rs index 40ffac22..1c24e5af 100644 --- a/lib/core/libimagrt/src/runtime.rs +++ b/lib/core/libimagrt/src/runtime.rs @@ -457,11 +457,7 @@ impl<'a> Runtime<'a> { } pub fn stdin(&self) -> Option<Stdin> { - if self.stdin_is_tty { - Some(::std::io::stdin()) - } else { - None - } + Some(::std::io::stdin()) } /// Helper for handling subcommands which are not available. |