mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-01-02 23:47:07 -05:00
comments
This commit is contained in:
parent
47126cc632
commit
6017e46af4
@ -11,6 +11,7 @@ func Must(err error) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Must2 panics if the second parameter is not nil.
|
||||||
func Must2(v interface{}, err error) {
|
func Must2(v interface{}, err error) {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
panic(err)
|
panic(err)
|
||||||
|
Loading…
Reference in New Issue
Block a user