Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ultra-supara committed Feb 4, 2024
1 parent 6e80ae5 commit 9d58345
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/core/issueinjection.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,8 @@ func (rule *IssueInjection) VisitJobPre(node *ast.Job) error {
lines := strings.Split(value, "\n")
reportError := func(i int, msg string) {
base := *run.Run.Pos // copy
base.Line += i
if run.Run.Literal {
base.Line += 1
base.Line += i + 1
}
rule.Errorf(&base, msg)
}
Expand Down

0 comments on commit 9d58345

Please sign in to comment.