1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2024-12-04 10:34:55 +02:00

Fix formatting on notARepository checks

This commit is contained in:
Kalvin Pearce 2020-11-24 22:02:31 +10:00 committed by Jesse Duffield
parent 7581830e70
commit 0a58cb2877

View File

@ -194,14 +194,14 @@ func (app *App) setupRepo() (bool, error) {
shouldInitRepo := true
notARepository := app.Config.GetUserConfig().NotARepository
if(notARepository == "prompt") {
if notARepository == "prompt" {
// Offer to initialize a new repository in current directory.
fmt.Print(app.Tr.CreateRepo)
response, _ := bufio.NewReader(os.Stdin).ReadString('\n')
if strings.Trim(response, " \n") != "y" {
shouldInitRepo = false
}
} else if(notARepository == "skip") {
} else if notARepository == "skip" {
shouldInitRepo = false
}