mirror of
https://github.com/PretendoNetwork/nex-go.git
synced 2025-04-02 11:02:14 -04:00
chore(AnyObjectHolder): Inline cast check
This commit is contained in:
parent
340b851e5f
commit
9c8f7bd62e
1 changed files with 1 additions and 2 deletions
|
@ -74,8 +74,7 @@ func (aoh *AnyObjectHolder[T]) ExtractFrom(readable Readable) error {
|
|||
}
|
||||
|
||||
var ok bool
|
||||
aoh.Object, ok = ptr.Deref().(T)
|
||||
if (!ok) {
|
||||
if aoh.Object, ok = ptr.Deref().(T); !ok {
|
||||
return fmt.Errorf("Input AnyObjectHolder object %s is invalid", identifier)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue