0
Fork 0
mirror of https://github.com/project-zot/zot.git synced 2024-12-23 22:27:35 -05:00
zot/pkg/test/inject/prod.go
LaurentiuNiculae a3f355c278
refactor(storage): refactoring storage (#1459)
Signed-off-by: Laurentiu Niculae <niculae.laurentiu1@gmail.com>
2023-05-26 11:08:19 -07:00

24 lines
352 B
Go

//go:build !dev
// +build !dev
package inject
func Error(err error) error {
return err
}
func Ok(ok bool) bool {
return ok
}
func ErrStatusCode(statusCode int) int {
return statusCode
}
/**
*
* Failure injection infrastructure to cover hard-to-reach code paths (nop in production).
*
**/
func InjectFailure(skip int) bool { return false }