Skip to content
This repository was archived by the owner on Jan 29, 2026. It is now read-only.

Commit cb4bdb4

Browse files
committed
Simplified error handling
1 parent f4a27db commit cb4bdb4

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

audit/create.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,7 @@ func (c *Client) CreateAuditEvent(event *dstu2pb.AuditEvent) (*stu3pb.ContainedR
3333
return contained, resp, nil
3434
}
3535
// OperationOutcome
36-
unmarshalled, err := c.um.Unmarshal(operationResponse.Bytes())
37-
if err != nil {
38-
return nil, resp, fmt.Errorf("c.um.Unmarshal: %w", err)
39-
}
36+
unmarshalled, _ := c.um.Unmarshal(operationResponse.Bytes())
4037
if unmarshalled != nil {
4138
contained = unmarshalled.(*stu3pb.ContainedResource)
4239
}

0 commit comments

Comments
 (0)