Skip to content

Commit 93d6a95

Browse files
committed
Rename parameter
1 parent 6910537 commit 93d6a95

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

internal/nullable/nullable.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ func From[T nullable](value T) Value[T] {
1818
return Value[T]{value, true}
1919
}
2020

21-
func FromPtr[T nullable](value *T) Value[T] {
22-
if value == nil {
21+
func FromPtr[T nullable](ptr *T) Value[T] {
22+
if ptr == nil {
2323
return Null[T]()
2424
}
25-
return From[T](*value)
25+
return From[T](*ptr)
2626
}

0 commit comments

Comments
 (0)