Fix IDE warninings about comment (#29818)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
aba4434dab
Коммит
76eee25206
@@ -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
|
||||
|
||||
Ссылка в новой задаче
Block a user