Skip to content
This repository has been archived by the owner on Feb 17, 2024. It is now read-only.

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
Signed-off-by: Achille Roussel <[email protected]>
  • Loading branch information
achille-roussel committed May 31, 2023
1 parent 5912b83 commit 53c485d
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions config.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,9 +145,11 @@ type nullable[T any] struct {
exist bool
}

func null[T any]() nullable[T] {
return nullable[T]{exist: false}
}
// Note: commented to satisfy the linter, uncomment if we need it
//
// func null[T any]() nullable[T] {
// return nullable[T]{exist: false}
// }

func value[T any](v T) nullable[T] {
return nullable[T]{value: v, exist: true}
Expand Down

0 comments on commit 53c485d

Please sign in to comment.