Clean up return values of some API functions

This commit is contained in:
meehl committed 2026-08-12 21:05:34 +02:00
1 parent e43da1b9e8
commit b48edb72e1
4 files changed
+13 -25

No files matched your search

+2 -2
View File
@@ -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),
}
}