Skip to content

Commit

Permalink
Update client.go
Browse files Browse the repository at this point in the history
Co-authored-by: James Tait <[email protected]>
  • Loading branch information
pansbro12 and Jarota authored Nov 6, 2024
1 parent 47f5cad commit 91770d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ func (c *Castle) Risk(ctx context.Context, req *Request) (RecommendedAction, err
return RecommendedActionNone, errors.New("request.Context cannot be nil")
}
createdAt := req.CreatedAt
if req.CreatedAt.IsZero() {
if createdAt.IsZero() {
createdAt = time.Now()
}
r := &castleRiskAPIRequest{
Expand Down

0 comments on commit 91770d8

Please sign in to comment.