Details
-
Sub-task
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
Description
Currently, createEventRecord() performs an error check:
if objectID == "" { return nil, fmt.Errorf("objectID should not be nil") } if reason == "" { return nil, fmt.Errorf("reason should not be nil") }
These error checks are not necessary. Everything is in our hands here, the two strings are not user-supplied input. We'll have tons of tests, both unit and e2e, such classic defensive coding is not needed.
Attachments
Issue Links
- links to