mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-06-04 23:37:41 +02:00
Factor out redundant statement
This commit is contained in:
parent
b9b2f58bc8
commit
69718fb557
@ -228,8 +228,8 @@ func (app *App) setupRepo() (bool, error) {
|
|||||||
return false, err
|
return false, err
|
||||||
}
|
}
|
||||||
|
|
||||||
if isBare {
|
|
||||||
fmt.Print(app.Tr.BareRepo)
|
fmt.Print(app.Tr.BareRepo)
|
||||||
|
|
||||||
response, _ := bufio.NewReader(os.Stdin).ReadString('\n')
|
response, _ := bufio.NewReader(os.Stdin).ReadString('\n')
|
||||||
shouldOpenRecent := strings.Trim(response, " \r\n") == "y"
|
shouldOpenRecent := strings.Trim(response, " \r\n") == "y"
|
||||||
|
|
||||||
@ -248,7 +248,6 @@ func (app *App) setupRepo() (bool, error) {
|
|||||||
|
|
||||||
os.Exit(0)
|
os.Exit(0)
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
return false, nil
|
return false, nil
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user