Details

    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

          Activity

            People

              pbacsko Peter Bacsko
              pbacsko Peter Bacsko
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: