aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2025-05-05 10:24:34 -0300
committerEuAndreh <eu@euandre.org>2025-05-05 10:24:34 -0300
commitbcbc1ebb02ba8b9625751e4d5d6b847bd3a0c798 (patch)
treed0c8f88fdb65ae2b19d096dce8756d20a928eb82
parentsrc/gistatic.go: Tweak indentation 💅 (diff)
downloadgistatic-bcbc1ebb02ba8b9625751e4d5d6b847bd3a0c798.tar.gz
gistatic-bcbc1ebb02ba8b9625751e4d5d6b847bd3a0c798.tar.xz
src/gistatic.go: Use ExitIf() from gobang
-rw-r--r--src/gistatic.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/gistatic.go b/src/gistatic.go
index 14954fc..d326162 100644
--- a/src/gistatic.go
+++ b/src/gistatic.go
@@ -70,8 +70,6 @@ func run(args argsT, stdin io.Reader, stdout io.Writer, stderr io.Writer) int {
func Main() {
g.Init()
args, rc := getopt(os.Args, os.Stderr)
- if rc != 0 {
- os.Exit(rc)
- }
+ g.ExitIf(rc)
os.Exit(run(args, os.Stdin, os.Stdout, os.Stderr))
}