The former one was just a wrapper to the second one. In this patch I removed the fedora31ImageType struct and instead moved the pointer to the imageType struct. The previous solution always created a new wrapper and returned it to the called. This new solution creates a shallow copy of imageType, assignes arch field, and then returns the result to the caller. It should achieve the same without the additional wrapper. |
||
|---|---|---|
| .. | ||
| fedora30 | ||
| fedora31 | ||
| fedora32 | ||
| fedoratest | ||
| rhel81 | ||
| rhel82 | ||
| test | ||
| distro.go | ||
| distro_test.go | ||
| osrelease_test.go | ||