mirror of
https://github.com/majd/ipatool
synced 2026-11-26 17:27:52 +08:00
- Move logging to command level. - Simplify and unify interfaces for `appstore` package. - Move sinf replication from "Download" API to "ReplicateSinf" API. - Handle retries and command specific logic in the command level. - Rename "Info" API to "AccountInfo".
11 lines
218 B
Go
11 lines
218 B
Go
package util
|
|
|
|
// Must is a helper that wraps a call to a function returning (T, error) and panics if the error is non-nil.
|
|
func Must[T any](val T, err error) T {
|
|
if err != nil {
|
|
panic(err.Error())
|
|
}
|
|
|
|
return val
|
|
}
|