Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
karimra committed Mar 4, 2024
1 parent beec4b2 commit 607f686
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
1 change: 0 additions & 1 deletion pkg/app/generate.go
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,6 @@ func (a *App) GenerateSetRequestRunE(cmd *cobra.Command, args []string) error {
for k, v := range nm {
m[k] = v
}
case nil:
default:
m[e.Name] = nm
}
Expand Down
4 changes: 0 additions & 4 deletions pkg/formatters/processors.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,14 +115,10 @@ func CheckCondition(code *gojq.Code, e *EventMsg) (bool, error) {
return false, err
}
iter := code.Run(input)
if err != nil {
return false, err
}
var ok bool
res, ok = iter.Next()
// iterator not done, so the final result won't be a boolean
if !ok {
//
return false, nil
}
if err, ok = res.(error); ok {
Expand Down

0 comments on commit 607f686

Please sign in to comment.