mirror of https://github.com/v2ray/v2ray-core
comments
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) {
|
||||
if err != nil {
|
||||
panic(err)
|
||||
|
|
Loading…
Reference in New Issue