Skip to content

Commit

Permalink
Run gofumpt
Browse files Browse the repository at this point in the history
  • Loading branch information
nullishamy committed Aug 18, 2022
1 parent 290e865 commit 956372c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions pkg/app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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)
}
Expand Down

0 comments on commit 956372c

Please sign in to comment.