Skip to content

Commit

Permalink
Fix unreachable warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Lexikos committed Apr 20, 2024
1 parent 6ec5164 commit 42fb651
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions install.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -792,10 +792,10 @@ class Installation {
SendMessage(0xBAAD, ObjPtr(err), 0, A_ScriptHwnd),
OnMessage(0xBAAD, newthread, 0)
newthread(ep, *) {
if ep {
if ep
throw ObjFromPtrAddRef(ep)
return 0
}
if ep ; This line prevents an "unreachable" warning in v2.0.
return 0 ; This line prevents continuation of the function in v2.1-alpha.3+ (if user selects Continue).
DetectHiddenWindows true
WinExist "ahk_class #32770 ahk_pid " ProcessExist()
Loop 5
Expand Down

0 comments on commit 42fb651

Please sign in to comment.