Skip to content

Commit

Permalink
Remove dependency to util/runtime from allocation/v1alpha1/register.go
Browse files Browse the repository at this point in the history
  • Loading branch information
pooneh-m authored and markmandel committed Apr 17, 2019
1 parent 27b37f5 commit d06e30e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pkg/apis/allocation/v1alpha1/register.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ package v1alpha1

import (
"agones.dev/agones/pkg/apis/allocation"
"agones.dev/agones/pkg/util/runtime"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
k8sruntime "k8s.io/apimachinery/pkg/runtime"
"k8s.io/apimachinery/pkg/runtime/schema"
Expand Down Expand Up @@ -44,7 +43,9 @@ var (
)

func init() {
runtime.Must(AddToScheme(scheme.Scheme))
if err := AddToScheme(scheme.Scheme); err != nil {
panic(err)
}
}

// Adds the list of known types to api.Scheme.
Expand Down

0 comments on commit d06e30e

Please sign in to comment.