mirror of
https://github.com/lune-org/lune.git
synced 2025-04-19 11:23:57 +01:00
fix: do not handle nil
value case
Co-authored-by: Filip Tibell <filip.tibell@gmail.com>
This commit is contained in:
parent
a480c1dc8e
commit
632ba9984c
1 changed files with 1 additions and 1 deletions
|
@ -138,7 +138,7 @@ impl<'lua> FromLua<'lua> for ProcessSpawnOptions {
|
|||
If we have stdin contents, we need to pass those to the child process
|
||||
*/
|
||||
match value.get("stdin")? {
|
||||
LuaValue::Nil => this.stdin = None,
|
||||
LuaValue::Nil => {},
|
||||
LuaValue::String(s) => this.stdin = Some(s.to_string_lossy().to_string()),
|
||||
value => {
|
||||
return Err(LuaError::RuntimeError(format!(
|
||||
|
|
Loading…
Add table
Reference in a new issue