From c6edbc20affed29d6b12e46a04859afd41cc07d8 Mon Sep 17 00:00:00 2001 From: TorchedSammy <38820196+TorchedSammy@users.noreply.github.com> Date: Tue, 7 Dec 2021 17:27:07 -0400 Subject: [PATCH] style: dont explicitly set exitcode to 0 since its the default value --- hilbish.go | 2 +- shell.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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)