mirror of
https://github.com/portainer/portainer.git
synced 2025-07-19 13:29:41 +02:00
ignore, remove or comment out unused code. Enable unused linter (#10743)
This commit is contained in:
parent
8396ff068d
commit
e687cee608
7 changed files with 3 additions and 94 deletions
|
@ -56,13 +56,3 @@ func testVersion(store *Store, versionWant string, t *testing.T) {
|
|||
t.Errorf("Expect store version to be %s but was %s", versionWant, v.SchemaVersion)
|
||||
}
|
||||
}
|
||||
|
||||
func testEdition(store *Store, editionWant portainer.SoftwareEdition, t *testing.T) {
|
||||
v, err := store.VersionService.Version()
|
||||
if err != nil {
|
||||
log.Fatal().Err(err).Msg("")
|
||||
}
|
||||
if portainer.SoftwareEdition(v.Edition) != editionWant {
|
||||
t.Errorf("Expect store edition to be %s but was %s", editionWant.GetEditionLabel(), portainer.SoftwareEdition(v.Edition).GetEditionLabel())
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue