From 9a4692e6eef6aecad4e5d515396dff0b9e133c98 Mon Sep 17 00:00:00 2001 From: CodeLingo Bot Date: Mon, 11 Mar 2019 00:45:21 +0000 Subject: [PATCH] Fix function comments based on best practices from Effective Go Signed-off-by: CodeLingo Bot --- pkg/resource/resource.go | 2 +- pkg/types/genargs.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/resource/resource.go b/pkg/resource/resource.go index 1e0e3764b8..122fb6d6fa 100644 --- a/pkg/resource/resource.go +++ b/pkg/resource/resource.go @@ -54,7 +54,7 @@ func (r *Resource) Behavior() types.GenerationBehavior { return r.options.Behavior() } -// NeedAppendHash checks if the resource need a hash suffix +// NeedHashSuffix checks if the resource need a hash suffix func (r *Resource) NeedHashSuffix() bool { return r.options != nil && r.options.NeedsHashSuffix() } diff --git a/pkg/types/genargs.go b/pkg/types/genargs.go index bef093d350..fc25dcdc99 100644 --- a/pkg/types/genargs.go +++ b/pkg/types/genargs.go @@ -47,7 +47,7 @@ func (g *GenArgs) String() string { "}" } -// NeedHashSuffix returns true if the hash suffix is needed. +// NeedsHashSuffix returns true if the hash suffix is needed. // It is needed when the two conditions are both met // 1) GenArgs is not nil // 2) DisableNameSuffixHash in GeneratorOptions is not set to true