Skip to content

Commit

Permalink
add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Devin Wong committed Apr 16, 2024
1 parent 8ffdab4 commit 3bcb719
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/nbcontracthelper/helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ func ensureConfigsNonNil(v *nbcontractv1.Configuration) *nbcontractv1.Configurat
return v
}

// Creates a new instance of nbcontractv1.Configuration and ensures that
// all fields are non-nil unless it's set as proto3 explicit presence (with label optional).
func NewNBContractConfiguration(v *nbcontractv1.Configuration) *nbcontractv1.Configuration {
return ensureConfigsNonNil(v)
}

0 comments on commit 3bcb719

Please sign in to comment.