mirror of
https://gitclone.com/github.com/MetaCubeX/Clash.Meta
synced 2024-11-16 14:11:19 +08:00
9 lines
114 B
Go
9 lines
114 B
Go
|
package utils
|
||
|
|
||
|
func MustOK[T any](result T, ok bool) T {
|
||
|
if ok {
|
||
|
return result
|
||
|
}
|
||
|
panic("operation failed")
|
||
|
}
|