mirror of
https://github.com/Buriburizaem0n/nezha_domains.git
synced 2026-11-04 08:40:20 +00:00
improve check for offline rules (#1013)
* improve check for offline rules * bug fixes * update dependencies * fix error wrap * fix offline check * improve readability
This commit is contained in:
1 parent
d2ffe106ac
commit
af55fae652
13 files changed
+198
-167
No files matched your search
@@ -149,3 +149,19 @@ func ConvertSeq2[KIn, VIn, KOut, VOut any](seq iter.Seq2[KIn, VIn], f func(KIn,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
type WrapError struct {
|
||||
err, errIn error
|
||||
}
|
||||
|
||||
func NewWrapError(err, errIn error) error {
|
||||
return &WrapError{err, errIn}
|
||||
}
|
||||
|
||||
func (e *WrapError) Error() string {
|
||||
return e.err.Error()
|
||||
}
|
||||
|
||||
func (e *WrapError) Unwrap() error {
|
||||
return e.errIn
|
||||
}
|
||||
Reference in new issue
Block a user