YTSFlix_Go/vendor/github.com/anacrolix/missinggo/x/panic.go

9 lines
124 B
Go
Raw Normal View History

2018-11-04 14:58:15 +00:00
package x
// Panic if error. Just fucking add exceptions, please.
func Pie(err error) {
if err != nil {
panic(err)
}
}