This is an automated email from the ASF dual-hosted git repository.

pcongiusti pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-k.git


The following commit(s) were added to refs/heads/main by this push:
     new e11765b80 delete unreachable code caused by log.Fatalln
e11765b80 is described below

commit e11765b8093833368a530c277faa81e82ebfff45
Author: Abirdcfly <[email protected]>
AuthorDate: Tue Aug 9 21:05:15 2022 +0800

    delete unreachable code caused by log.Fatalln
    
    Signed-off-by: Abirdcfly <[email protected]>
---
 cmd/util/vfs-gen/main.go | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/cmd/util/vfs-gen/main.go b/cmd/util/vfs-gen/main.go
index 5f01ac307..121d3646b 100644
--- a/cmd/util/vfs-gen/main.go
+++ b/cmd/util/vfs-gen/main.go
@@ -44,7 +44,6 @@ func main() {
        wd, err := os.Getwd()
        if err != nil {
                log.Fatalln(err)
-               os.Exit(1)
        }
 
        flag.StringVar(&rootDir, "root", base.GoModDirectory, "The absolute 
path from were the directories can be found (camel-k module directory by 
default)")
@@ -59,7 +58,6 @@ func main() {
        err = checkDir(rootDir)
        if err != nil {
                log.Fatalln(err)
-               os.Exit(1)
        }
 
        dirNames := flag.Args()
@@ -68,7 +66,6 @@ func main() {
                err := checkDir(absDir)
                if err != nil {
                        log.Fatalln(err)
-                       os.Exit(1)
                }
        }
 
@@ -82,7 +79,6 @@ func main() {
        mfs, err := multifs.New(rootDir, dirNames, exclusions)
        if err != nil {
                log.Fatalln(err)
-               os.Exit(1)
        }
 
        var fs http.FileSystem = modTimeFS{

Reply via email to