Skip to content

Commit

Permalink
chore: do not unnecessarily propagate error
Browse files Browse the repository at this point in the history
  • Loading branch information
jqnatividad committed Feb 9, 2025
1 parent 93da774 commit f7f4486
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/cmd/luau.rs
Original file line number Diff line number Diff line change
Expand Up @@ -526,7 +526,8 @@ pub fn run(argv: &[&str]) -> CliResult<()> {

// set LUAU_PATH to include the luadate library
let mut luau_path = args.flag_luau_path.clone();
write!(luau_path, ";{}", luadate_path.as_os_str().to_string_lossy())?;
// safety: safe to unwrap as we're just using it to append to luau_path
write!(luau_path, ";{}", luadate_path.as_os_str().to_string_lossy()).unwrap();
env::set_var("LUAU_PATH", luau_path.clone());
info!(r#"set LUAU_PATH to "{luau_path}""#);
}
Expand Down

0 comments on commit f7f4486

Please sign in to comment.