fix: errors settype return type

This commit is contained in:
Kirill 2023-06-14 11:04:38 +03:00
parent 09f11889a6
commit 6cc3b49a81

@ -21,7 +21,7 @@ type Error interface {
Error() string
Type() ErrorType
Wrap(message string) Error
SetType(errorType ErrorType) Error
SetType(errorType ErrorType)
}
type customError struct {
@ -57,8 +57,6 @@ func (receiver *customError) Wrap(message string) Error {
return receiver
}
func (receiver *customError) SetType(errorType ErrorType) Error {
func (receiver *customError) SetType(errorType ErrorType) {
receiver.errorType = errorType
return receiver
}