mirror of
https://github.com/jesseduffield/lazygit.git
synced 2024-12-10 11:10:18 +02:00
Run gofumpt
This commit is contained in:
parent
290e865584
commit
956372cf8a
@ -156,7 +156,6 @@ func isDirectoryAGitRepository(dir string) (bool, error) {
|
|||||||
return info != nil, err
|
return info != nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
func openRecentRepo(app *App) bool {
|
func openRecentRepo(app *App) bool {
|
||||||
for _, repoDir := range app.Config.GetAppState().RecentRepos {
|
for _, repoDir := range app.Config.GetAppState().RecentRepos {
|
||||||
if isRepo, _ := isDirectoryAGitRepository(repoDir); isRepo {
|
if isRepo, _ := isDirectoryAGitRepository(repoDir); isRepo {
|
||||||
@ -218,7 +217,6 @@ func (app *App) setupRepo() (bool, error) {
|
|||||||
os.Exit(1)
|
os.Exit(1)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if shouldInitRepo {
|
if shouldInitRepo {
|
||||||
if err := app.OSCommand.Cmd.New("git init " + initialBranchArg).Run(); err != nil {
|
if err := app.OSCommand.Cmd.New("git init " + initialBranchArg).Run(); err != nil {
|
||||||
return false, err
|
return false, err
|
||||||
@ -248,7 +246,7 @@ func (app *App) setupRepo() (bool, error) {
|
|||||||
fmt.Print(app.Tr.BareRepo)
|
fmt.Print(app.Tr.BareRepo)
|
||||||
|
|
||||||
response, _ := bufio.NewReader(os.Stdin).ReadString('\n')
|
response, _ := bufio.NewReader(os.Stdin).ReadString('\n')
|
||||||
|
|
||||||
if shouldOpenRecent := strings.Trim(response, " \r\n") == "y"; !shouldOpenRecent {
|
if shouldOpenRecent := strings.Trim(response, " \r\n") == "y"; !shouldOpenRecent {
|
||||||
os.Exit(0)
|
os.Exit(0)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user