mirror of
https://github.com/XTLS/Xray-core.git
synced 2024-11-22 20:59:19 +02:00
This commit is contained in:
parent
d7cd71b741
commit
3de5af0611
|
@ -40,11 +40,9 @@ func (err *Error) pkgPath() string {
|
||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
path := reflect.TypeOf(err.pathObj).PkgPath()
|
path := reflect.TypeOf(err.pathObj).PkgPath()
|
||||||
for i := 0; i < len(path); i++ {
|
if len(path) >= trim {
|
||||||
if path[i] == '/' {
|
|
||||||
return path[trim:]
|
return path[trim:]
|
||||||
}
|
}
|
||||||
}
|
|
||||||
return path
|
return path
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue