From 956372cf8a126e62ae64d515368d96c4bb510138 Mon Sep 17 00:00:00 2001 From: nullishamy Date: Thu, 18 Aug 2022 18:26:34 +0100 Subject: [PATCH] Run gofumpt --- pkg/app/app.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pkg/app/app.go b/pkg/app/app.go index d8031b7d5..899325142 100644 --- a/pkg/app/app.go +++ b/pkg/app/app.go @@ -156,7 +156,6 @@ func isDirectoryAGitRepository(dir string) (bool, error) { return info != nil, err } - func openRecentRepo(app *App) bool { for _, repoDir := range app.Config.GetAppState().RecentRepos { if isRepo, _ := isDirectoryAGitRepository(repoDir); isRepo { @@ -218,7 +217,6 @@ func (app *App) setupRepo() (bool, error) { os.Exit(1) } - if shouldInitRepo { if err := app.OSCommand.Cmd.New("git init " + initialBranchArg).Run(); err != nil { return false, err @@ -248,7 +246,7 @@ func (app *App) setupRepo() (bool, error) { fmt.Print(app.Tr.BareRepo) response, _ := bufio.NewReader(os.Stdin).ReadString('\n') - + if shouldOpenRecent := strings.Trim(response, " \r\n") == "y"; !shouldOpenRecent { os.Exit(0) }