Skip to content

Commit

Permalink
fix: error handling refined
Browse files Browse the repository at this point in the history
  • Loading branch information
parthpnx committed Jan 16, 2025
1 parent ecfff31 commit e469ea0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ func lambdaHandler(_ context.Context, rawEvent json.RawMessage) error {
return fmt.Errorf("failed to unmarshal event: %w", err)
}

if event.DetailType != EventDetailType || len(event.Resources) > 0 {
if event.DetailType != EventDetailType {
return fmt.Errorf("event type not supported")
}

Expand Down

0 comments on commit e469ea0

Please sign in to comment.