From 3eca99fffd90e03ecd9b8ebc96719735a28fd224 Mon Sep 17 00:00:00 2001 From: xiaorunkun Date: Tue, 23 Mar 2021 17:10:21 +0800 Subject: [PATCH] the metadata is always true --- internal/version/version.go | 3 --- pkg/gates/doc.go | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/internal/version/version.go b/internal/version/version.go index 15822e914..fa0f569c4 100644 --- a/internal/version/version.go +++ b/internal/version/version.go @@ -53,9 +53,6 @@ type BuildInfo struct { // GetVersion returns the semver string of the version func GetVersion() string { - if metadata == "" { - return version - } return version + "+" + metadata } diff --git a/pkg/gates/doc.go b/pkg/gates/doc.go index 762fdb8c6..91a3e4db9 100644 --- a/pkg/gates/doc.go +++ b/pkg/gates/doc.go @@ -13,7 +13,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -/*Package gates provides a general tool for working with experimental feature gates. +/*Package gates provide a general tool for working with experimental feature gates. This provides convenience methods where the user can determine if certain experimental features are enabled. */