Removing unecessary param and variable on GetSandbox

This commit is contained in:
2025-09-28 21:58:55 -03:00
parent 76450789b0
commit ff4c61315e
2 changed files with 3 additions and 5 deletions

View File

@@ -6,9 +6,7 @@ import (
lua "github.com/yuin/gopher-lua"
)
func GetSandBox(sandboxdir string) (lua.LState, error) {
SandboxDir = sandboxdir
func GetSandBox() (lua.LState, error) {
cfg, err := configs.GetConfigTOML()
if err != nil {

View File

@@ -109,7 +109,7 @@ func InstallPackage(file []byte, destDir string) error {
}
}
L, err := utils_lua.GetSandBox(destDir)
L, err := utils_lua.GetSandBox()
if err != nil {
return err
}
@@ -136,7 +136,7 @@ func InstallPackage(file []byte, destDir string) error {
// ExecuteRemoveScript executes the remove script from the package
func ExecuteRemoveScript(path string) error {
L, err := utils_lua.GetSandBox(".")
L, err := utils_lua.GetSandBox()
if err != nil {
return err
}