diff --git a/hilbish.go b/hilbish.go index 21460e6..fdd3a74 100644 --- a/hilbish.go +++ b/hilbish.go @@ -55,7 +55,7 @@ func hilbishLoader(L *lua.LState) int { // run(cmd) // Runs `cmd` in Hilbish's sh interpreter func hlrun(L *lua.LState) int { - var exitcode uint8 = 0 + var exitcode uint8 cmd := L.CheckString(1) err := execCommand(cmd) diff --git a/shell.go b/shell.go index 798a1bd..4a8b8ec 100644 --- a/shell.go +++ b/shell.go @@ -133,7 +133,7 @@ func execCommand(cmd string) error { } luaexitcode := l.Get(-1) - var exitcode uint8 = 0 + var exitcode uint8 l.Pop(1)