mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-08-06 22:33:07 +02:00
Don't exit after handling daemon mode
The function that called us has just created a temp dir, and scheduled a defer to remove it again; by calling os.Exit we short-cut this defer, and don't clean up the temp dir. There is no reason to exit here, the calling function will return after having called us.
This commit is contained in:
@ -76,8 +76,6 @@ func Handle(common *common.Common) {
|
||||
if err := instruction.run(common); err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
|
||||
os.Exit(0)
|
||||
}
|
||||
|
||||
func InDaemonMode() bool {
|
||||
|
Reference in New Issue
Block a user