fix: remove domain->common/errors import — domain must be dependency-free
Review #3 comment: domain package shouldn't depend on any other package. Replace common/errors.ErrNotImplemented alias with stdlib errors.New so domain has zero internal dependencies.
This commit is contained in:
@ -1,8 +1,6 @@
|
||||
package domain
|
||||
|
||||
import (
|
||||
cerrors "git.loyso.art/frx/kurious/internal/common/errors"
|
||||
)
|
||||
import "errors"
|
||||
|
||||
// ErrNotImplemented is delegated to common/errors.ErrNotImplemented for consistency.
|
||||
var ErrNotImplemented = cerrors.ErrNotImplemented
|
||||
// ErrNotImplemented is returned by interface stubs that have not been implemented yet.
|
||||
var ErrNotImplemented = errors.New("not implemented")
|
||||
|
||||
Reference in New Issue
Block a user