0
mirror of https://github.com/XTLS/Xray-core.git synced 2025-06-12 03:19:36 +03:00

Refactor to stdlib error unwrap method

This commit is contained in:
世界
2022-06-01 11:03:06 +08:00
parent f1d753f069
commit c4a307e84d
2 changed files with 8 additions and 19 deletions

View File

@ -48,7 +48,7 @@ func (e readError) Error() string {
return e.error.Error()
}
func (e readError) Inner() error {
func (e readError) Unwrap() error {
return e.error
}
@ -66,7 +66,7 @@ func (e writeError) Error() string {
return e.error.Error()
}
func (e writeError) Inner() error {
func (e writeError) Unwrap() error {
return e.error
}