Fix IDE warninings about comment (#29818)

This commit is contained in:
enzowritescode 2025-01-10 17:33:12 -07:00 committed by GitHub
parent aba4434dab
commit 76eee25206
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -7,7 +7,7 @@ package model
func NewPointer[T any](t T) *T { return &t }
// SafeDereference returns the zero value of T if t is nil.
// Otherwise it return the derference of t.
// Otherwise, it returns t dereferenced.
func SafeDereference[T any](t *T) T {
if t == nil {
var t T