Clean up return values of some API functions
This commit is contained in:
1 parent
e43da1b9e8
commit
b48edb72e1
4 files changed
+13
-25
No files matched your search
+2
-2
@@ -148,8 +148,8 @@ fn restart(l: &Lua, _: ()) -> LuaResult<()> {
|
||||
|
||||
fn open_url(l: &Lua, url: String) -> LuaResult<MultiValue> {
|
||||
match open::that(url) {
|
||||
Ok(_) => Ok(().into_lua_multi(l)?),
|
||||
Err(_) => Ok("Unable to open url!".into_lua_multi(l)?),
|
||||
Ok(_) => ().into_lua_multi(l),
|
||||
Err(_) => "Unable to open url!".into_lua_multi(l),
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user