Skip to content

Commit

Permalink
Remove dependency to util/runtime from APIS package
Browse files Browse the repository at this point in the history
  • Loading branch information
pooneh-m authored and jkowalski committed Apr 9, 2019
1 parent 4c06cf6 commit 5ecb1a3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pkg/apis/stable/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/stable"
"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 5ecb1a3

Please sign in to comment.