mirror of
https://github.com/XTLS/Xray-core.git
synced 2025-04-29 16:58:34 +00:00
Refactor to stdlib error unwrap method
This commit is contained in:
parent
f1d753f069
commit
c4a307e84d
2 changed files with 8 additions and 19 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue