frostfs-qos/internal/assert/cond.go

10 lines
129 B
Go
Raw Permalink Normal View History

package assert
import "strings"
func Cond(cond bool, details ...string) {
if !cond {
panic(strings.Join(details, " "))
}
}