mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-10-13 12:34:10 -04:00
common.Must2
This commit is contained in:
@@ -10,3 +10,9 @@ func Must(err error) {
|
||||
panic(err)
|
||||
}
|
||||
}
|
||||
|
||||
func Must2(v interface{}, err error) {
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user