go.mod: update osbuild/images to v0.124.0
This commit is contained in:
parent
a27880c0c6
commit
6a112877f1
62 changed files with 2390 additions and 2108 deletions
9
vendor/github.com/osbuild/images/internal/common/helpers.go
generated
vendored
9
vendor/github.com/osbuild/images/internal/common/helpers.go
generated
vendored
|
|
@ -59,3 +59,12 @@ func ExecError(err error) error {
|
|||
}
|
||||
return err
|
||||
}
|
||||
|
||||
// Must() can be used to shortcut all `NewT() (T, err)` constructors.
|
||||
// It will panic if an error is passed.
|
||||
func Must[T any](val T, err error) T {
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
return val
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue