refactor(Assert)!: harmonize naming 2
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user