Skip to content

Commit

Permalink
🐛 fix file incidents
Browse files Browse the repository at this point in the history
Signed-off-by: Pranav Gaikwad <[email protected]>
  • Loading branch information
pranavgaikwad committed Jul 31, 2023
1 parent 86939ec commit 36797e8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion engine/conditions.go
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,9 @@ func (ce ConditionEntry) Evaluate(ctx context.Context, log logr.Logger, condCtx
func incidentsToFilepaths(incident []IncidentContext) []string {
filepaths := []string{}
for _, ic := range incident {
filepaths = append(filepaths, ic.FileURI.Filename())
if _, err := uri.Parse(string(ic.FileURI)); err == nil {
filepaths = append(filepaths, ic.FileURI.Filename())
}
}
return filepaths
}
Expand Down

0 comments on commit 36797e8

Please sign in to comment.