refactor(Assert)!: harmonize naming 2

This commit is contained in:
2024-10-15 13:26:44 +02:00
parent 331c1722af
commit 86c8376f54
3 changed files with 7 additions and 7 deletions

View File

@@ -3,7 +3,7 @@ package Type
import (
"errors"
"github.com/lbatuska/goutils/assert"
Assert "github.com/lbatuska/goutils/assert"
)
// CTORS BEGIN
@@ -44,7 +44,7 @@ func (res *Result[T]) HasValue() bool {
// UNWRAPPABLE INTERFACE
func (res *Result[T]) Expect(msg string) T {
assert.NotNil(res)
Assert.NotNil(res)
if res.err == nil {
return res.value
}
@@ -52,7 +52,7 @@ func (res *Result[T]) Expect(msg string) T {
}
func (res *Result[T]) Unwrap() T {
assert.NotNil(res)
Assert.NotNil(res)
if res.err == nil {
return res.value
}