Skip to content

Commit

Permalink
Undo change
Browse files Browse the repository at this point in the history
  • Loading branch information
lateefj committed May 22, 2019
1 parent 5af259a commit 4e79a45
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions interp/interp.go
Expand Up @@ -288,7 +288,7 @@ func execProgram(p *interp, program *Program) (int, error) {
// Execute the program! BEGIN, then pattern/actions, then END
err := p.execBeginEnd(program.Begin)
if err != nil && err != errExit {
return p.exitStatus, err
return 0, err
}
if program.Actions == nil && program.End == nil {
return p.exitStatus, nil
Expand All @@ -301,7 +301,7 @@ func execProgram(p *interp, program *Program) (int, error) {
}
err = p.execBeginEnd(program.End)
if err != nil && err != errExit {
return 0, err
return p.exitStatus, err
}
return 0, nil
}
Expand Down

0 comments on commit 4e79a45

Please sign in to comment.