Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelsq committed Sep 8, 2020
1 parent 982e204 commit 98750c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/wtc/wtc.go
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,6 @@ func trig(rule *Rule, pkg, path string) error {
}

body := replaceEnvRe.ReplaceAllStringFunc(string(b), func(k string) string {
<-queue
return keys[strings.TrimSuffix(strings.TrimPrefix(k, "%{"), "}%")]
})

Expand Down Expand Up @@ -478,6 +477,7 @@ func trig(rule *Rule, pkg, path string) error {
}

if err != nil {
<-queue
cancel()
return err
}
Expand Down

0 comments on commit 98750c4

Please sign in to comment.