From 2edc97bf17cc7e8c6fba1f5b91e270296ea56fab Mon Sep 17 00:00:00 2001 From: m1093782566 Date: Mon, 26 Feb 2018 17:56:16 +0800 Subject: [PATCH] fix static checks --- pkg/proxy/util/network.go | 2 +- pkg/proxy/util/testing/fake.go | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/pkg/proxy/util/network.go b/pkg/proxy/util/network.go index 8a4461247e3..fa5c9fc7535 100644 --- a/pkg/proxy/util/network.go +++ b/pkg/proxy/util/network.go @@ -1,5 +1,5 @@ /* -Copyright 2017 The Kubernetes Authors. +Copyright 2018 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/pkg/proxy/util/testing/fake.go b/pkg/proxy/util/testing/fake.go index a041785288e..44fd56d6301 100644 --- a/pkg/proxy/util/testing/fake.go +++ b/pkg/proxy/util/testing/fake.go @@ -1,5 +1,5 @@ /* -Copyright 2015 The Kubernetes Authors. +Copyright 2018 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -25,6 +25,7 @@ type FakeNetwork struct { Address map[string][]net.Addr } +// NewFakeNetwork initializes a FakeNetwork. func NewFakeNetwork() *FakeNetwork { return &FakeNetwork{ NetworkInterfaces: make([]net.Interface, 0),