From d59f4c4256ff4151b0ca9fdded6c031fdd0c5f9e Mon Sep 17 00:00:00 2001 From: Eduard Urbach Date: Fri, 15 May 2026 12:16:57 +0200 Subject: [PATCH] Removed unnecessary branch in the cli package --- src/cli/Exec.go | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/cli/Exec.go b/src/cli/Exec.go index c576650..42dd5b7 100644 --- a/src/cli/Exec.go +++ b/src/cli/Exec.go @@ -1,7 +1,5 @@ package cli -import "os" - // Exec runs the command included in the first argument and returns the exit code. func Exec(args []string) int { if len(args) == 0 { @@ -31,12 +29,6 @@ func Exec(args []string) int { return version() default: - _, err := os.Stat(args[0]) - - if err != nil { - invalid() - } - return run(args) } } \ No newline at end of file -- 2.51.2