diff --git a/internal/containerizedengine/progress.go b/internal/containerizedengine/progress.go index 9ff2be52ab..e40b5a45d2 100644 --- a/internal/containerizedengine/progress.go +++ b/internal/containerizedengine/progress.go @@ -93,7 +93,6 @@ outer: } func updateNonActive(ctx context.Context, ongoing *jobs, cs content.Store, statuses map[string]statusInfo, keys *[]string, activeSeen map[string]struct{}, done *bool, start time.Time) error { - for _, j := range ongoing.jobs() { key := remotes.MakeRefKey(ctx, j) *keys = append(*keys, key) diff --git a/internal/licenseutils/client_test.go b/internal/licenseutils/client_test.go index b0b202ebb1..9e46202f28 100644 --- a/internal/licenseutils/client_test.go +++ b/internal/licenseutils/client_test.go @@ -96,7 +96,6 @@ func (c *fakeLicensingClient) StoreLicense(ctx context.Context, dclnt licensing. } func (c *fakeLicensingClient) LoadLocalLicense(ctx context.Context, dclnt licensing.WrappedDockerClient) (*model.Subscription, error) { - if c.loadLocalLicenseFunc != nil { return c.loadLocalLicenseFunc(ctx, dclnt) diff --git a/internal/versions/versions.go b/internal/versions/versions.go index 9e83bb371a..5e09eb65fd 100644 --- a/internal/versions/versions.go +++ b/internal/versions/versions.go @@ -24,7 +24,6 @@ const ( // GetEngineVersions reports the versions of the engine that are available func GetEngineVersions(ctx context.Context, registryClient registryclient.RegistryClient, registryPrefix, imageName, versionString string) (clitypes.AvailableVersions, error) { - if imageName == "" { var err error localMetadata, err := GetCurrentRuntimeMetadata("")