1
0
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:
Stefan Haller
2025-07-30 11:37:46 +02:00
parent f4afeed9ff
commit 6a17144ef4

View File

@ -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 {