style: dont explicitly set exitcode to 0 since its the default value

dev
TorchedSammy 2021-12-07 17:27:07 -04:00
parent 82b4fa5e7c
commit c6edbc20af
Signed by: sammyette
GPG Key ID: 904FC49417B44DCD
2 changed files with 2 additions and 2 deletions

View File

@ -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)

View File

@ -133,7 +133,7 @@ func execCommand(cmd string) error {
}
luaexitcode := l.Get(-1)
var exitcode uint8 = 0
var exitcode uint8
l.Pop(1)