mirror of
https://github.com/mattermost/mattermost.git
synced 2026-04-15 22:12:19 -04:00
Fix IDE warninings about comment (#29818)
This commit is contained in:
parent
aba4434dab
commit
76eee25206
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue