chore: Cleanup REALITY code

This commit is contained in:
H1JK
2023-03-11 12:23:27 +08:00
parent 07f3cd2ae5
commit ae4d114802
3 changed files with 20 additions and 7 deletions

8
common/utils/must.go Normal file
View File

@ -0,0 +1,8 @@
package utils
func MustOK[T any](result T, ok bool) T {
if ok {
return result
}
panic("operation failed")
}