Skip to content

Commit

Permalink
x
Browse files Browse the repository at this point in the history
  • Loading branch information
bassosimone committed Jun 27, 2024
1 parent c5a70e8 commit 7f1a0c7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions internal/experimentconfig/experimentconfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ import (
// value will be a zero-length list (either nil or empty).
func DefaultOptionsSerializer(config any) (options []string) {
// as documented, this method MUST be passed a struct pointer
//
// Implementation note: the .Elem method converts a nil
// pointer to a zero value pointee type.
stval := reflect.ValueOf(config)
if stval.Kind() != reflect.Pointer {
return
Expand Down

0 comments on commit 7f1a0c7

Please sign in to comment.