This is an automated email from the ASF dual-hosted git repository. nferraro pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/camel-k.git
commit 529a25daa06cf2c551349df42be8dc4aee0bacf8 Author: lburgazzoli <[email protected]> AuthorDate: Wed Sep 19 12:09:16 2018 +0200 fix golint findings for pkg/util/openshift --- pkg/util/openshift/register.go | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/pkg/util/openshift/register.go b/pkg/util/openshift/register.go index f399bab..83b08aa 100644 --- a/pkg/util/openshift/register.go +++ b/pkg/util/openshift/register.go @@ -15,7 +15,6 @@ See the License for the specific language governing permissions and limitations under the License. */ -// Register all Openshift types that we want to manage. package openshift import ( @@ -30,14 +29,11 @@ import ( "k8s.io/apimachinery/pkg/runtime" ) +// Register all Openshift types that we want to manage. func init() { - k8sutil.AddToSDKScheme(AddToScheme) + k8sutil.AddToSDKScheme(addKnownTypes) } -var ( - AddToScheme = addKnownTypes -) - type registerFunction func(*runtime.Scheme) error func addKnownTypes(scheme *runtime.Scheme) error {
