distro/*: remove redundant manifest tests
The same test is run in distro/distro_test.go. The redundancy was probably caused by a bitrot in several commits. I decided to remove the test from distro implementations to reduce the amount of duplicated code. Signed-off-by: Ondřej Budai <ondrej@budai.cz>
This commit is contained in:
parent
3c715c7cf8
commit
a7dee8b604
5 changed files with 6 additions and 24 deletions
|
|
@ -65,10 +65,6 @@ func main() {
|
|||
}
|
||||
|
||||
distros := distroregistry.NewDefault()
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
d := distros.GetDistro(composeRequest.Distro)
|
||||
if d == nil {
|
||||
_, _ = fmt.Fprintf(os.Stderr, "The provided distribution '%s' is not supported. Use one of these:\n", composeRequest.Distro)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue