1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-07-30 03:23:08 +03:00

Use constant for WAIT_FOR_DEBUGGER env var

This commit is contained in:
Stefan Haller
2023-09-11 21:25:57 +02:00
parent 2f6a87df98
commit 92e107f52d
2 changed files with 3 additions and 2 deletions

View File

@ -31,7 +31,7 @@ func main() {
integrationTest := getIntegrationTest()
if os.Getenv("WAIT_FOR_DEBUGGER") != "" {
if os.Getenv(components.WAIT_FOR_DEBUGGER_ENV_VAR) != "" {
println("Waiting for debugger to attach...")
for !isDebuggerAttached() {
time.Sleep(time.Millisecond * 100)