Skip to content

Commit ba01f08

Browse files
committed
Fix CodeQL warning
1 parent 879272a commit ba01f08

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/gh_post_steps.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ func executePostSteps(c *ExecutionState, steps []PostStep) {
7878
}
7979

8080
if err := step.Runner.RunPost(c, env); err != nil {
81-
utils.LogErr.Errorf("Post step failed: %s: %v\n", step.ActionName, err)
81+
utils.LogErr.Errorf("Post step failed: %s\n", step.ActionName)
8282
}
8383
}
8484
}
@@ -100,7 +100,7 @@ func evaluatePostIf(c *ExecutionState, step PostStep) bool {
100100
evaluator := NewEvaluator(c)
101101
result, err := evaluator.Evaluate(condition)
102102
if err != nil {
103-
utils.LogErr.Errorf("Failed to evaluate post-if condition for %s: %v\n", step.ActionName, err)
103+
utils.LogErr.Errorf("Failed to evaluate post-if condition for %s\n", step.ActionName)
104104
return false
105105
}
106106

0 commit comments

Comments
 (0)